From 6585c9a8031967a026a317055775ff32707149dd Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 7 Feb 2023 18:10:16 +0100 Subject: [PATCH] Update main.py --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d445d25..4ea7a52 100644 --- a/main.py +++ b/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)