Brett Cannon <br...@python.org> added the comment:

I found out why runpy was giving back an absolute file path for __file__; 
because pkgutil was doing that through its ImpLoader, unlike what import does 
by default which is just taking what path it has and appending file names (and 
thus not making anything absolute).

So I have simply forced runpy to make absolute paths of the files it is given. 
Nick, can you have a look and let me know if this fix is reasonable, or if 
another os.path.abspath() call is needed somewhere in runpy?

----------
Added file: http://bugs.python.org/file25359/explicit_path_hooks.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14605>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to