[issue8202] sys.argv and python -m package
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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list