diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2019-01-07 13:49:54 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2019-01-07 14:40:50 +0000 |
commit | 365182e459bd7d9e9b7fb279db40652922b2c60b (patch) | |
tree | 2c52bf419370fc9f39becc4206ba62747f7f7cee | |
parent | b5e1c6ffaba434830b68b25ef062493b0cc05fd3 (diff) |
fix unix like path in remove_tree(path)
Change-Id: Ie8023b54f812edb268f0637b712a8013c669fc2c
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r-- | packaging-tools/bldinstallercommon.py | 2 |
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) |