summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tools.py')
-rw-r--r--Lib/test/test_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py
index cfe13ac..42816a2 100644
--- a/Lib/test/test_tools.py
+++ b/Lib/test/test_tools.py
@@ -18,8 +18,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('projectbase')
-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')