Skip to content
Snippets Groups Projects
Commit ddf78f5e authored by root's avatar root
Browse files

Some bug fixes

parent de011f3f
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -116,8 +116,10 @@ def generate_pdf(tex, filename):
# Execute pdflatex to generate the PDF
bash_command = "pdflatex -output-directory {} {}.tex".format(os.path.join(BASE_DIR, "latex"),
os.path.join(BASE_DIR, "latex", filename))
print(bash_command)
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE)
output = process.communicate()[0]
print(output)
def tex_replacer(s):
......
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