diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-27 23:20:26 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-27 23:20:26 (GMT) |
commit | 8afc243a767327af8874cfee11a8341d254316aa (patch) | |
tree | 6858381fa2664352ce65a241524d4fc2deb1b4ad /Lib/test/test_tools.py | |
parent | 76b931b133d5b30c6cab65144d81a26b56cd2b9c (diff) | |
download | cpython-8afc243a767327af8874cfee11a8341d254316aa.zip cpython-8afc243a767327af8874cfee11a8341d254316aa.tar.gz cpython-8afc243a767327af8874cfee11a8341d254316aa.tar.bz2 |
Avoid using scrdir, it's broken.
Diffstat (limited to 'Lib/test/test_tools.py')
-rw-r--r-- | Lib/test/test_tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 3b89178..7a25069 100644 --- a/Lib/test/test_tools.py +++ b/Lib/test/test_tools.py @@ -19,8 +19,8 @@ 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('srcdir') -basepath = os.path.join(os.getcwd(), srcdir, 'Tools') +basepath = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), + 'Tools') scriptsdir = os.path.join(basepath, 'scripts') |