From 074c918f1c5f2f9e9ce6769d79364a5d17a5ccf3 Mon Sep 17 00:00:00 2001 From: Kilton937342 Date: Tue, 2 Aug 2022 13:48:23 +0200 Subject: [PATCH] iutiut --- backend/api/exercices/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/api/exercices/views.py b/backend/api/exercices/views.py index 687980ab..6f2b934e 100644 --- a/backend/api/exercices/views.py +++ b/backend/api/exercices/views.py @@ -424,6 +424,9 @@ def pdfGen(request): direct = tempdir with open(os.path.join(direct, 'tmp.tex'), 'x', encoding='utf-8') as f: f.write(latex) + + with open(os.path.join(direct, 'tmp.tex'), 'r', encoding='utf-8') as f: + print('FILE', f.read()) command = f'xelatex -interaction=batchmode tmp.tex' try: subprocess.run(command, shell=True,