Update main.py

This commit is contained in:
Paillat
2023-02-06 09:39:33 +01:00
parent bec7b1b137
commit 9c5e097232

View File

@@ -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)