mirror of
https://github.com/Paillat-dev/presentator.git
synced 2026-01-02 01:06:20 +00:00
Update main.py
This commit is contained in:
4
main.py
4
main.py
@@ -168,12 +168,14 @@ class:
|
|||||||
cmd = f"--pdf --allow-local-files ./data/{uid}/{b64}{datenow}/{subject}.md"
|
cmd = f"--pdf --allow-local-files ./data/{uid}/{b64}{datenow}/{subject}.md"
|
||||||
#we replace all the ' with \'
|
#we replace all the ' with \'
|
||||||
#if the os is linux we replace the \ with /
|
#if the os is linux we replace the \ with /
|
||||||
|
t = False
|
||||||
try:
|
try:
|
||||||
os.system(f"marp.exe {cmd}")
|
os.system(f"marp.exe {cmd}")
|
||||||
|
print("marp.exe")
|
||||||
except:
|
except:
|
||||||
cmd = cmd.replace("'", "\\'")
|
cmd = cmd.replace("'", "\\'")
|
||||||
os.system(f"./marp {cmd}")
|
os.system(f"./marp {cmd}")
|
||||||
|
print("marp")
|
||||||
print(cmd)
|
print(cmd)
|
||||||
#cmd = f"./marp --image png -o ./data/{uid}/{b64}{datenow}/{subject}.png --allow-local-files data/{uid}/{b64}{datenow}/{subject}.md"
|
#cmd = f"./marp --image png -o ./data/{uid}/{b64}{datenow}/{subject}.png --allow-local-files data/{uid}/{b64}{datenow}/{subject}.md"
|
||||||
#the above command is not working in docker, so we use the following one
|
#the above command is not working in docker, so we use the following one
|
||||||
|
|||||||
Reference in New Issue
Block a user