Commit af05df6c authored by chirac's avatar chirac

Merge branch 'fix_debug_remains' into 'dev'

Fix klafy horrors

See merge request federez/re2o!470
parents 5a83a577 09da1b4d
Pipeline #2310 passed with stage
in 3 minutes and 15 seconds
......@@ -110,13 +110,12 @@ def create_pdf(template, ctx={}):
with tempfile.TemporaryDirectory() as tempdir:
for _ in range(2):
with open("/var/www/re2o/out.log", "w") as f:
process = Popen(
["pdflatex", "-output-directory", tempdir],
stdin=PIPE,
stdout=f, # PIPE,
)
process.communicate(rendered_tpl)
process = Popen(
["pdflatex", "-output-directory", tempdir],
stdin=PIPE,
stdout=PIPE,
)
process.communicate(rendered_tpl)
with open(os.path.join(tempdir, "texput.pdf"), "rb") as f:
pdf = f.read()
......
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