Improve LaTeX compilation code

This commit is contained in:
Gilles Castel 2020-05-19 17:52:06 +02:00
parent f7af1b4863
commit c45e17e531

View File

@ -140,10 +140,10 @@ class Lectures(list):
return l
def compile_master(self):
subprocess.Popen(
['latexmk', '-g', '-f', str(self.master_file)],
cwd=str(self.root),
result = subprocess.run(
['latexmk', '-f', '-interaction=nonstopmode', str(self.master_file)],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
stderr=subprocess.DEVNULL,
cwd=str(self.root)
)
return result.returncode