diff options
author | Neil Schemenauer <nas@arctrix.com> | 2012-06-27 21:58:37 (GMT) |
---|---|---|
committer | Neil Schemenauer <nas@arctrix.com> | 2012-06-27 21:58:37 (GMT) |
commit | 76b931b133d5b30c6cab65144d81a26b56cd2b9c (patch) | |
tree | 5f0659e1187d9927a9996f6d6c4bd3cb8e5644aa /Lib/test/test_tools.py | |
parent | faae3adbb98521d039c574fd3ed417f54a72374d (diff) | |
download | cpython-76b931b133d5b30c6cab65144d81a26b56cd2b9c.zip cpython-76b931b133d5b30c6cab65144d81a26b56cd2b9c.tar.gz cpython-76b931b133d5b30c6cab65144d81a26b56cd2b9c.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_tools.py')
-rw-r--r-- | Lib/test/test_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 564b747..3b89178 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') |