diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-27 14:00:50 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-27 14:00:50 -0500 |
commit | 57bf0b99a118d93749fdeef7aad95c7d82e53be6 (patch) | |
tree | 21340002a2b1aadc98b35e2eebd271d65423e89e | |
parent | 8a94f99bfbb19859aed1d96e5d169c80b51936d0 (diff) | |
download | external_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.tar.gz external_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.tar.bz2 external_python_setuptools-57bf0b99a118d93749fdeef7aad95c7d82e53be6.zip |
Use dict lookup default for sys_executable
-rwxr-xr-x | setuptools/command/easy_install.py | 6 |
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', |