Message 101542 - Python tracker
Message101542
| 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: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 | |