Skip to content
Snippets Groups Projects
Commit f1b66da5 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

cleanup temp file correctly

parent 6f0358bd
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,8 @@ def latex_to_image(str_):
if exitcode == 0:
os.rename(tmpfile + '.png', tmppng)
else:
os.remove(tmppng)
os.rmdir(tmpdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment