Message120261
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) |
|
Date |
User |
Action |
Args |
2010-11-02 21:56:49 | ncoghlan | set | recipients:
+ ncoghlan, ronaldoussoren, tarek, ned.deily, eric.araujo, doughellmann |
2010-11-02 21:56:49 | ncoghlan | set | messageid: <1288735009.59.0.799405234619.issue10263@psf.upfronthosting.co.za> |
2010-11-02 21:56:48 | ncoghlan | link | issue10263 messages |
2010-11-02 21:56:47 | ncoghlan | create | |
|