Message101542
Nick is right that importing package.__main__ requires importing package.__init__ first.
But it sounds like Michael really just wants some way to know when runpy is being used over something else. Could a special string token like "<runpy>" or "<-m>" be placed in sys.argv until it is back-patched to what it will eventually become? That should allow Michael to find out what whether runpy was being used or not. |
|
Date |
User |
Action |
Args |
2010-03-22 22:43:53 | brett.cannon | set | recipients:
+ brett.cannon, ncoghlan, michael.foord |
2010-03-22 22:43:53 | brett.cannon | set | messageid: <1269297833.85.0.796647746336.issue8202@psf.upfronthosting.co.za> |
2010-03-22 22:43:52 | brett.cannon | link | issue8202 messages |
2010-03-22 22:43:52 | brett.cannon | create | |
|