From 42211426eb9771424b9e5153d12f8c2c0c538d34 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sat, 26 May 2012 20:36:12 +0100 Subject: Addressed some buildbot errors and comments on the checkin by Antoine on python-dev. --- Lib/sysconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/sysconfig.py') diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 6ed9fd831f..7350efbfa0 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -104,7 +104,8 @@ def _is_python_source_dir(d): 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 is_python_build(check_home=False): -- cgit v1.2.1