Call subprocesses with absolute path
This commit is contained in:
parent
b6901ea1e5
commit
48407cacf8
3 changed files with 3 additions and 3 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue