[issue8202] sys.argv[0] and python -m package

Nick Coghlan report at bugs.python.org
Mon Mar 22 23:05:39 CET 2010


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

Hmm, the problem here is we don't *know* the module filename until we get hold of the loader for it (see _get_module_details() in runpy). And it is the process of finding the loader for the __main__ module that does the initial import of the package as a side effect.

Added Brett to the nosy list in case I've not thought of something obvious.

----------
nosy: +brett.cannon

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


More information about the Python-bugs-list mailing list