mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Merge branch 'fix_debug_remains' into 'dev'
Fix klafy horrors See merge request federez/re2o!470
This commit is contained in:
commit
af05df6c85
1 changed files with 6 additions and 7 deletions
|
@ -110,11 +110,10 @@ 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,
|
||||
stdout=PIPE,
|
||||
)
|
||||
process.communicate(rendered_tpl)
|
||||
with open(os.path.join(tempdir, "texput.pdf"), "rb") as f:
|
||||
|
|
Loading…
Reference in a new issue