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 return l
def compile_master(self): def compile_master(self):
subprocess.Popen( result = subprocess.run(
['latexmk', '-g', '-f', str(self.master_file)], ['latexmk', '-f', '-interaction=nonstopmode', str(self.master_file)],
cwd=str(self.root),
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL stderr=subprocess.DEVNULL,
cwd=str(self.root)
) )
return result.returncode return result.returncode