📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit 10994650 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update controllers/plugin_dbui/latex2pdf to store pdf in /tmp.

parent a6abcaf5
......@@ -424,7 +424,7 @@ def latex2pdf():
# create the latex file in the private directory
cwd = os.getcwd()
os.chdir(os.path.join(request.folder, "private"))
os.chdir("/tmp")
fn = str(uuid4())
fi = open("%s.tex" % fn, "w")
......@@ -452,7 +452,7 @@ def latex2pdf():
os.chdir(cwd)
# download the PDF file
path_pdf = os.path.join(request.folder, "private", pdf)
path_pdf = os.path.join("/tmp", pdf)
return response.stream(path_pdf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment