Improve LaTeX compilation code
This commit is contained in:
parent
f7af1b4863
commit
c45e17e531
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue