Message120261
| Author |
ncoghlan |
| Recipients |
doughellmann, eric.araujo, ncoghlan, ned.deily, ronaldoussoren, tarek |
| Date |
2010年11月02日.21:56:47 |
| SpamBayes Score |
0.0014607599 |
| Marked as misclassified |
No |
| Message-id |
<1288735009.59.0.799405234619.issue10263@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|