From 193763a82a593833ceb5a3f6f54be30de79f8f3d Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sat, 7 Jul 2018 12:31:58 +0200 Subject: [PATCH] Fix issue with overwriting files on Windows. --- pyltk/documentclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyltk/documentclass.py b/pyltk/documentclass.py index e505a35..525bf1c 100644 --- a/pyltk/documentclass.py +++ b/pyltk/documentclass.py @@ -161,7 +161,7 @@ class documentclass(element): if compile_twice: res = subprocess.call(call, stdout=outlog) if res == 0: - os.rename( + os.replace( os.path.join( output_aux_folder, outfile + '.pdf'), os.path.join(outdir, outfile + '.pdf'))