Message120317
| Author |
ncoghlan |
| Recipients |
doughellmann, eric.araujo, ncoghlan, ned.deily, ronaldoussoren, tarek |
| Date |
2010年11月03日.11:58:14 |
| SpamBayes Score |
0.001484615 |
| Marked as misclassified |
No |
| Message-id |
<1288785496.28.0.000850188381675.issue10263@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ah, yes, I see what you mean - because runpy ignores the sys.modules cache (by design), it won't see the precached module instance placed there by the bootstrap code.
We actually *could* make this work on our end: if we find an existing module in sys.modules, derive the file to be executed from the __file__ attribute of that module rather than searching the whole path again. |
|