[issue10263] "python -m site" does not print path details

Nick Coghlan report at bugs.python.org
Wed Nov 3 12:58:16 CET 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10263>
_______________________________________


More information about the Python-bugs-list mailing list