This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, michael.foord, ncoghlan
Date 2010-03-22.22:43:52
SpamBayes Score 0.023304906
Marked as misclassified No
Message-id <1269297833.85.0.796647746336.issue8202@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-03-22 22:43:53brett.cannonsetrecipients: + brett.cannon, ncoghlan, michael.foord
2010-03-22 22:43:53brett.cannonsetmessageid: <1269297833.85.0.796647746336.issue8202@psf.upfronthosting.co.za>
2010-03-22 22:43:52brett.cannonlinkissue8202 messages
2010-03-22 22:43:52brett.cannoncreate