summaryrefslogtreecommitdiff
path: root/distutils2
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-01-30 17:12:16 +0100
committerTarek Ziade <tarek@ziade.org>2011-01-30 17:12:16 +0100
commit52ee667cee69605404bee9f6843c76cc82883b36 (patch)
tree141166d84794b60d6c630859a2ebfcd14b95723f /distutils2
parente5561e957c0476e1045f884da7e95165832e647f (diff)
downloaddisutils2-52ee667cee69605404bee9f6843c76cc82883b36.tar.gz
make sure the dir exists in that case
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))