Update main.py

This commit is contained in:
Paillat
2023-02-07 18:10:16 +01:00
parent a7f49dce02
commit 6585c9a803

View File

@@ -181,8 +181,9 @@ class:
#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
cmd = f" --image png -o ./data/{uid}/{b64}{datenow}/{subject}.png --allow-local-files ./data/{uid}/{b64}{datenow}/{subject}.md" cmd = f" --image png -o ./data/{uid}/{b64}{datenow}/{subject}.png --allow-local-files ./data/{uid}/{b64}{datenow}/{subject}.md"
#hopefully this will work in docker #hopefully this will work in docker
try: os.system(f"marp.exe {cmd}") #try: os.system(f"marp.exe {cmd}")
except: #except:
if True:
cmd = cmd.replace("'", "\\'") cmd = cmd.replace("'", "\\'")
os.system(f"./marp {cmd}") os.system(f"./marp {cmd}")
print(cmd) print(cmd)