aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/bldinstallercommon.py
diff options
context:
space:
mode:
Diffstat (limited to 'packaging-tools/bldinstallercommon.py')
-rw-r--r--packaging-tools/bldinstallercommon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/bldinstallercommon.py b/packaging-tools/bldinstallercommon.py
index b7a221d9d..682e8bfe3 100644
--- a/packaging-tools/bldinstallercommon.py
+++ b/packaging-tools/bldinstallercommon.py
@@ -359,7 +359,7 @@ def handle_remove_readonly(func, path, exc):
def remove_tree(path):
if os.path.isdir(path) and os.path.exists(path):
if IS_WIN_PLATFORM:
- path = win32api.GetShortPathName(path)
+ path = win32api.GetShortPathName(path.replace('/', '\\'))
#a funny thing is that rmdir does not set an exitcode it is just using the last set one
try:
runCommand(['rmdir', path, '/S', '/Q'], SCRIPT_ROOT_DIR, onlyErrorCaseOutput=True)