Skip to content
Snippets Groups Projects
Commit 8d4c8399 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix file paths in PDF

parent 2a092dd7
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,8 @@ def generate_pdf(tex, filename):
tex_file.close()
# Execute pdflatex to generate the PDF
bash_command = "pdflatex -output-directory latex {}.tex".format(filename)
bash_command = "pdflatex -output-directory {} {}.tex".format(os.path.join(BASE_DIR, "latex"),
os.path.join(BASE_DIR, "latex", filename))
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE)
output = process.communicate()[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment