Brian Herman added the comment: In python 3.6 from hg it has been fixed.
>>> glob.glob('*.py') ['setup.py', 'test.py'] >>> import test >>> test.__file__ 'C:\\Users\\brian\\Desktop\\cpython\\test.py' >>> ---------- nosy: +Brian.Herman _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27083> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com