From 9c5e097232fb10ca57b88dd412453e44f11a2e93 Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 6 Feb 2023 09:39:33 +0100 Subject: [PATCH] Update main.py --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 6979bfd..37b6242 100644 --- a/main.py +++ b/main.py @@ -110,6 +110,7 @@ class: with open(f"./data/{uid}/{b64}{datenow}/{subject}.md", "w", encoding="utf8") as f: f.write(present) #we execute the command to convert the markdown file to a pdf and html file and also generate the first slide image current_dir = os.getcwd() + print(current_dir) #cmd = f"./marp --pdf --allow-local-files data/{uid}/{b64}{datenow}/{subject}.md" cmd = f"./marp --pdf --allow-local-files {current_dir}/data/{uid}/{b64}{datenow}/{subject}.md" os.system(cmd)