diff options
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 2cdcca562c7..ee669d17237 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2171,7 +2171,10 @@ class WM_OT_addon_remove(Operator): import shutil if isdir: - shutil.rmtree(path) + if os.path.islink(path): + os.remove(path) + else: + shutil.rmtree(path) else: os.remove(path) |