diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 01:53:10 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 01:53:10 (GMT) |
commit | 1d1ab9734a0e5778a494d1be4c47f8e181371a00 (patch) | |
tree | 3801b8607241aa2f3dfd0a42dad49b7a8f6a5287 /Lib/sysconfig.py | |
parent | ecf021c7c0caf4698cf704d03af4eb3d366fcdd5 (diff) | |
download | cpython-1d1ab9734a0e5778a494d1be4c47f8e181371a00.zip cpython-1d1ab9734a0e5778a494d1be4c47f8e181371a00.tar.gz cpython-1d1ab9734a0e5778a494d1be4c47f8e181371a00.tar.bz2 |
Merged revisions 78833 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78833 | florent.xicluna | 2010-03-11 02:50:48 +0100 (jeu, 11 mar 2010) | 2 lines
Revert r78830: realpath() should really be applied to sys.executable.
........
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 33a13b6..619e458 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -84,8 +84,7 @@ _PREFIX = os.path.normpath(sys.prefix) _EXEC_PREFIX = os.path.normpath(sys.exec_prefix) _CONFIG_VARS = None _USER_BASE = None -# Note: sys.executable can be '' or even a directory, until #7774 is fixed. -_PROJECT_BASE = realpath(os.path.dirname(sys.executable)) +_PROJECT_BASE = os.path.dirname(realpath(sys.executable)) if os.name == "nt" and "pcbuild" in _PROJECT_BASE[-8:].lower(): _PROJECT_BASE = realpath(os.path.join(_PROJECT_BASE, pardir)) @@ -297,7 +296,7 @@ def _init_non_posix(vars): vars['SO'] = '.pyd' vars['EXE'] = '.exe' vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT - vars['BINDIR'] = realpath(os.path.dirname(sys.executable)) + vars['BINDIR'] = os.path.dirname(realpath(sys.executable)) # # public APIs |