1
0
Fork 0
mirror of https://github.com/Findus23/invoices.git synced 2024-09-18 14:03:48 +02:00

compile in nonstopmode

This commit is contained in:
fkarg 2020-09-22 14:01:19 +02:00
parent e7149ad443
commit ffd7b2ddf0

View file

@ -115,7 +115,7 @@ def compile_invoice(id):
fh.write(template.render(section1='Long Form', section2='Short Form', **data))
os.chdir(directory)
for _ in range(2):
subprocess.check_call(['pdflatex', '{name}.tex'.format(name=translate("invoice"))])
subprocess.check_call(['pdflatex', '-interaction=nonstopmode', '{name}.tex'.format(name=translate("invoice"))])
print(directory)
remove_tmp_files(translate("invoice"))