[issue14605] Make import machinery explicit

Nick Coghlan report at bugs.python.org
Wed Apr 25 08:05:28 CEST 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Yeah, I was actually going to suggest forcing an absolute path for __main__.__file__ in runpy if you didn't want to do it in importlib itself.

I'm much happier with that approach than changing the tests, so the updated patch looks good to me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14605>
_______________________________________


More information about the Python-bugs-list mailing list