Skip to content
Snippets Groups Projects
Commit 9b0551a3 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"nonstopmode"

parent b329c404
No related branches found
No related tags found
No related merge requests found
......@@ -12,15 +12,13 @@ def latex_compile(filename, num=1, compiler='pdflatex'):
i = num
r = -1
while i > 0:
output = subprocess.run([compiler, filename], stdout=subprocess.DEVNULL)
output = subprocess.run([compiler, '--interaction=nonstopmode', \
filename], stdout=subprocess.DEVNULL)
r = output.returncode
if r != 0:
break
i -= 1
if r == 0:
return True
else:
return False
return True if r == 0 else False
result = latex_compile(infile, RUNS, TEX_COMPILER)
if result:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment