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,