Nick Coghlan <[email protected]> added the comment:
Yeah, because the internal import system isn't fully exposed, runpy and a
couple of other tools in the standard library rely on the emulation in pkgutil
instead. I know there are some differences between the emulation and the
builtin mechanism on Windows in terms of search order, but I thought they were
the same on OS X.
Manipulating sys.path and the various caches in sys should affect both import
mechanisms though - just what are setuptools/distribute doing?
I'm also curious as to which version of the module importlib finds ("import
importlib; print(importlib.import_module("site").__file__)" will tell you that
for both 2.7 and 3.x)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com