summaryrefslogtreecommitdiff
path: root/distutils2
diff options
context:
space:
mode:
Diffstat (limited to 'distutils2')
-rw-r--r--distutils2/install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distutils2/install.py b/distutils2/install.py
index e1c76b1..4d3ea5a 100644
--- a/distutils2/install.py
+++ b/distutils2/install.py
@@ -388,7 +388,8 @@ def remove(project_name, paths=sys.path):
# removing the top path
# XXX count it ?
- shutil.rmtree(dist.path)
+ if os.path.exists(dist.path):
+ shutil.rmtree(dist.path)
logger.info('Success ! Removed %d files and %d dirs' % \
(file_count, dir_count))