[issue25800] errors running test_capi from command line
Martin Panter
report at bugs.python.org
Fri Dec 4 18:50:51 EST 2015
Martin Panter added the comment:
The code looks like it is trying to find the root of the source code tree, and then chdir() to it and access /Programs/_testembed etc.
In your case the chain of dirname() calls returns an empty string because that root is already the current directory. I would make chdir() conditional:
if basepath:
os.chdir(basepath)
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25800>
_______________________________________
More information about the Python-bugs-list
mailing list