aboutsummaryrefslogtreecommitdiffstats
path: root/distribute_setup.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2009-09-22 17:33:49 +0200
committerLennart Regebro <regebro@gmail.com>2009-09-22 17:33:49 +0200
commit1502d7426ed56d8235426db13e6cda4f4609f8a4 (patch)
tree18d368b43851b62b4378d1217b7e07fd837170c2 /distribute_setup.py
parent7596dc0cf93965df85e36dcbca683270f5e9ded2 (diff)
downloadexternal_python_setuptools-1502d7426ed56d8235426db13e6cda4f4609f8a4.tar.gz
external_python_setuptools-1502d7426ed56d8235426db13e6cda4f4609f8a4.tar.bz2
external_python_setuptools-1502d7426ed56d8235426db13e6cda4f4609f8a4.zip
Fixed a bug that gave a traceback when doing install --help under Python 3.
--HG-- branch : distribute extra : rebase_source : 9fcc8ddc5a2f8f57660d940375e1356c9a600ac3
Diffstat (limited to 'distribute_setup.py')
-rw-r--r--distribute_setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index fb274518..69e62190 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -245,7 +245,7 @@ def _remove_flat_installation(placeholder):
def after_install(dist):
log.warn('After install bootstrap.')
placeholder = dist.get_command_obj('install').install_purelib
- if not os.path.exists(placeholder):
+ if not placeholder or not os.path.exists(placeholder):
log.warn('Could not find the install location')
return
pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1])