mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-30 04:13:01 +00:00
Disable pdflatex interactivity
This commit is contained in:
parent
5ebdb015ad
commit
ae028b7d06
@ -209,7 +209,7 @@ class InvoiceRenderView(LoginRequiredMixin, View):
|
|||||||
# The file has to be rendered twice
|
# The file has to be rendered twice
|
||||||
for ignored in range(2):
|
for ignored in range(2):
|
||||||
error = subprocess.Popen(
|
error = subprocess.Popen(
|
||||||
["pdflatex", "invoice-{}.tex".format(pk)],
|
["pdflatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)],
|
||||||
cwd=tmp_dir,
|
cwd=tmp_dir,
|
||||||
stdin=open(os.devnull, "r"),
|
stdin=open(os.devnull, "r"),
|
||||||
stderr=open(os.devnull, "wb"),
|
stderr=open(os.devnull, "wb"),
|
||||||
|
@ -1103,7 +1103,7 @@ class MemberListRenderView(LoginRequiredMixin, View):
|
|||||||
|
|
||||||
with open(os.devnull, "wb") as devnull:
|
with open(os.devnull, "wb") as devnull:
|
||||||
error = subprocess.Popen(
|
error = subprocess.Popen(
|
||||||
["pdflatex", "{}/wei-list.tex".format(tmp_dir)],
|
["pdflatex", "-interaction=nonstopmode", "{}/wei-list.tex".format(tmp_dir)],
|
||||||
cwd=tmp_dir,
|
cwd=tmp_dir,
|
||||||
stderr=devnull,
|
stderr=devnull,
|
||||||
stdout=devnull,
|
stdout=devnull,
|
||||||
|
Loading…
Reference in New Issue
Block a user