From c45e17e53121f5ef2b40bb1e1d57123e30484461 Mon Sep 17 00:00:00 2001 From: Gilles Castel Date: Tue, 19 May 2020 17:52:06 +0200 Subject: [PATCH] Improve LaTeX compilation code --- scripts/lectures.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/lectures.py b/scripts/lectures.py index 9ef715a..b583df4 100755 --- a/scripts/lectures.py +++ b/scripts/lectures.py @@ -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