Skip to content
Snippets Groups Projects
Commit 1eed6b1c authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

fix lastPageRef bug

parent 33c34c4d
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -23,10 +23,7 @@ def generate_pdf(tex, filename):
os.path.join(BASE_DIR, "latex",
filename))
# Execute two times to get number of last page
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE)
output = process.communicate()[0]
del output
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE)
process = subprocess.Popen("{}; {}".format(bash_command, bash_command), stdout=subprocess.PIPE, shell=True)
output = process.communicate()[0]
del output
......
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