diff options
| author | Tarek Ziade <tarek@ziade.org> | 2011-01-30 17:12:16 +0100 |
|---|---|---|
| committer | Tarek Ziade <tarek@ziade.org> | 2011-01-30 17:12:16 +0100 |
| commit | 52ee667cee69605404bee9f6843c76cc82883b36 (patch) | |
| tree | 141166d84794b60d6c630859a2ebfcd14b95723f /distutils2/install.py | |
| parent | e5561e957c0476e1045f884da7e95165832e647f (diff) | |
| download | disutils2-52ee667cee69605404bee9f6843c76cc82883b36.tar.gz | |
make sure the dir exists in that case
Diffstat (limited to 'distutils2/install.py')
| -rw-r--r-- | distutils2/install.py | 3 |
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)) |
