Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8afc243

Browse files
committed
Avoid using scrdir, it's broken.
1 parent 76b931b commit 8afc243

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# and run the tests in that case too?
2020
raise unittest.SkipTest('test irrelevant for an installed Python')
2121

22-
srcdir = sysconfig.get_config_var('srcdir')
23-
basepath = os.path.join(os.getcwd(), srcdir, 'Tools')
22+
basepath = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
23+
'Tools')
2424
scriptsdir = os.path.join(basepath, 'scripts')
2525

2626

0 commit comments

Comments
 (0)