Skip to content

Commit 1836fb9

Browse files
committed
Remove broken symlinks on uninstall
1 parent 652b258 commit 1836fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas_rhino/uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def uninstall(version=None, packages=None):
7272
for package in packages:
7373
symlink_path = os.path.join(ipylib_path, package)
7474

75-
if not os.path.exists(symlink_path):
75+
if not (os.path.exists(symlink_path) or os.path.islink(symlink_path)):
7676
continue
7777

7878
try:

0 commit comments

Comments
 (0)