From: Antoine Pitrou Date: Wed, 27 Jun 2012 23:20:26 +0000 (+0200) Subject: Avoid using scrdir, it's broken. X-Git-Tag: v3.3.0b2~378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8afc243a767327af8874cfee11a8341d254316aa;p=thirdparty%2FPython%2Fcpython.git Avoid using scrdir, it's broken. --- diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 3b89178ad18b..7a25069f9607 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')