Fix bug in test_tools that prevented building is separate directory.

Use 'srcdir' from sysconfig instead of 'projectbase' to build a
path to the Tools directory.  'projectbase' is the path of the build
directory, not the source directory.
This commit is contained in:
Neil Schemenauer 2012-06-27 15:58:37 -06:00
parent faae3adbb9
commit 76b931b133
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if not sysconfig.is_python_build():
# and run the tests in that case too?
raise unittest.SkipTest('test irrelevant for an installed Python')
srcdir = sysconfig.get_config_var('projectbase')
srcdir = sysconfig.get_config_var('srcdir')
basepath = os.path.join(os.getcwd(), srcdir, 'Tools')
scriptsdir = os.path.join(basepath, 'scripts')