Message101538
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. |
|
Date |
User |
Action |
Args |
2010-03-22 22:05:39 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, michael.foord |
2010-03-22 22:05:39 | ncoghlan | set | messageid: <1269295539.52.0.157795313484.issue8202@psf.upfronthosting.co.za> |
2010-03-22 22:05:35 | ncoghlan | link | issue8202 messages |
2010-03-22 22:05:34 | ncoghlan | create | |
|