aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-27 14:00:50 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-27 14:00:50 -0500
commit57bf0b99a118d93749fdeef7aad95c7d82e53be6 (patch)
tree21340002a2b1aadc98b35e2eebd271d65423e89e /setuptools/command/easy_install.py
parent8a94f99bfbb19859aed1d96e5d169c80b51936d0 (diff)
downloadexternal_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.tar.gz
external_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.tar.bz2
external_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.zip
Use dict lookup default for sys_executable
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 61d51450..2f422f47 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -53,10 +53,8 @@ from pkg_resources import (
VersionConflict, DEVELOP_DIST,
)
-if '__VENV_LAUNCHER__' in os.environ:
- sys_executable = os.environ['__VENV_LAUNCHER__']
-else:
- sys_executable = os.path.normpath(sys.executable)
+sys_executable = os.environ.get('__VENV_LAUNCHER__',
+ os.path.normpath(sys.executable))
__all__ = [
'samefile', 'easy_install', 'PthDistributions', 'extract_wininst_cfg',