mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
Call subprocesses with absolute path
This commit is contained in:
@ -209,7 +209,7 @@ class InvoiceRenderView(LoginRequiredMixin, View):
|
||||
# The file has to be rendered twice
|
||||
for ignored in range(2):
|
||||
error = subprocess.Popen(
|
||||
["xelatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)],
|
||||
["/usr/bin/xelatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)],
|
||||
cwd=tmp_dir,
|
||||
stdin=open(os.devnull, "r"),
|
||||
stderr=open(os.devnull, "wb"),
|
||||
|
Reference in New Issue
Block a user