From ae028b7d06ed8a67cb1a47752dd886bc0a0c918a Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 6 Sep 2020 13:36:07 +0200 Subject: [PATCH] Disable pdflatex interactivity --- apps/treasury/views.py | 2 +- apps/wei/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/treasury/views.py b/apps/treasury/views.py index 2bddf319..c35b0711 100644 --- a/apps/treasury/views.py +++ b/apps/treasury/views.py @@ -209,7 +209,7 @@ class InvoiceRenderView(LoginRequiredMixin, View): # The file has to be rendered twice for ignored in range(2): error = subprocess.Popen( - ["pdflatex", "invoice-{}.tex".format(pk)], + ["pdflatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)], cwd=tmp_dir, stdin=open(os.devnull, "r"), stderr=open(os.devnull, "wb"), diff --git a/apps/wei/views.py b/apps/wei/views.py index 7720829c..f52d1335 100644 --- a/apps/wei/views.py +++ b/apps/wei/views.py @@ -1103,7 +1103,7 @@ class MemberListRenderView(LoginRequiredMixin, View): with open(os.devnull, "wb") as devnull: error = subprocess.Popen( - ["pdflatex", "{}/wei-list.tex".format(tmp_dir)], + ["pdflatex", "-interaction=nonstopmode", "{}/wei-list.tex".format(tmp_dir)], cwd=tmp_dir, stderr=devnull, stdout=devnull,