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:
5
main.py
5
main.py
@@ -181,8 +181,9 @@ class:
|
||||
#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"
|
||||
#hopefully this will work in docker
|
||||
try: os.system(f"marp.exe {cmd}")
|
||||
except:
|
||||
#try: os.system(f"marp.exe {cmd}")
|
||||
#except:
|
||||
if True:
|
||||
cmd = cmd.replace("'", "\\'")
|
||||
os.system(f"./marp {cmd}")
|
||||
print(cmd)
|
||||
|
||||
Reference in New Issue
Block a user