Fix uninstallling of activities that use symlinks #171
This commit is contained in:
parent
488b9ecbb2
commit
97e6480be1
@ -191,5 +191,9 @@ class Bundle(object):
|
|||||||
for name in files:
|
for name in files:
|
||||||
os.remove(os.path.join(root, name))
|
os.remove(os.path.join(root, name))
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
os.rmdir(os.path.join(root, name))
|
path = os.path.join(root, name)
|
||||||
|
if os.path.islink(path):
|
||||||
|
os.remove(path)
|
||||||
|
else:
|
||||||
|
os.rmdir(path)
|
||||||
os.rmdir(install_path)
|
os.rmdir(install_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user