diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-26 20:36:12 +0100 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-26 20:36:12 +0100 |
| commit | 42211426eb9771424b9e5153d12f8c2c0c538d34 (patch) | |
| tree | 3b4e48b2a151ddf75d0c350e4acb6e26e4dcbab6 /Lib/distutils/sysconfig.py | |
| parent | 072b1e1485e50b3698c9147ef6dd5b657c100978 (diff) | |
| download | cpython-git-42211426eb9771424b9e5153d12f8c2c0c538d34.tar.gz | |
Addressed some buildbot errors and comments on the checkin by Antoine on python-dev.
Diffstat (limited to 'Lib/distutils/sysconfig.py')
| -rw-r--r-- | Lib/distutils/sysconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 977962f748..59315f7279 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -47,7 +47,8 @@ def _is_python_source_dir(d): return True return False _sys_home = getattr(sys, '_home', None) -if _sys_home and os.name == 'nt' and _sys_home.lower().endswith('pcbuild'): +if _sys_home and os.name == 'nt' and \ + _sys_home.lower().endswith(('pcbuild', 'pcbuild\\amd64')): _sys_home = os.path.dirname(_sys_home) def _python_build(): if _sys_home: |
