From bb42124a87393fa86288ad8f4079158183683f8f Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 22 Feb 2018 23:06:27 -0500 Subject: Windows fixes (#83) * os.execv doesn't replace the process on windows * fix simulate/params crash * pyinstaller windowed mode breaks things? * fix output routing for windows * properly route stderr to inkscape too * don't print unless there's something to print * remove last backup version if necessary * add documentation for Windows build --- embroider.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'embroider.py') diff --git a/embroider.py b/embroider.py index 1c65ef4d..dfc7c7c9 100644 --- a/embroider.py +++ b/embroider.py @@ -1718,6 +1718,10 @@ class Embroider(inkex.Effect): if os.path.exists(source): move_if_exists(path, suffix + 1) + + if os.path.exists(dest): + os.remove(dest) + os.rename(source, dest) move_if_exists(output_path) -- cgit v1.2.3