Fix uninstallling of activities that use symlinks #171

This commit is contained in:
Simon Schampijer 2009-01-05 11:58:45 +01:00
parent 488b9ecbb2
commit 97e6480be1

View File

@ -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)