Madison May added the comment: PathFinder or FileFinder? Changing PathFinder._path_importer_cache(cls, path) seems to fix the issue.
See line 1302 in _bootstrap.py. if path == '': - path = '.' + path = _os.getcwd() $ touch blah.py; ./python -c "import blah; print(blah.__file__)" /home/mmay/cpython/blah.py ---------- nosy: +madison.may _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18416> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com