From 76b931b133d5b30c6cab65144d81a26b56cd2b9c Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Wed, 27 Jun 2012 15:58:37 -0600 Subject: [PATCH] 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. --- Lib/test/test_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 564b747b95c..3b89178ad18 100644 --- a/Lib/test/test_tools.py +++ b/Lib/test/test_tools.py @@ -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')