summaryrefslogtreecommitdiff
path: root/embroider.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-02-22 23:06:27 -0500
committerGitHub <noreply@github.com>2018-02-22 23:06:27 -0500
commitbb42124a87393fa86288ad8f4079158183683f8f (patch)
treeefd8a5a216ffe41ba4b2c90b0ca8721dc953b7de /embroider.py
parent48e5d628a8f49b0ff7e6db3d91b3b91f4a1af91a (diff)
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
Diffstat (limited to 'embroider.py')
-rw-r--r--embroider.py4
1 files changed, 4 insertions, 0 deletions
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)