- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
Message355088
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 | ammar2 |
|---|---|
| Recipients | Michel Desmoulin, ammar2, ncoghlan, r.david.murray, vstinner, xtreak, yselivanov |
| Date | 2019-10-21.17:44:21 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1571679861.38.0.760511700453.issue20443@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
I did a quick search to see what code would break from sys.argv[0] going relative intext:"sys.argv[0]" ext:py site:github.com https://www.google.com/search?q=intext:"sys.argv%5B0%5D"+ext:py+site:github.com and while most uses of it are to print usage messages. There is potentially code relying on it being a relative path that will break from this change: * https://github.com/google/python-gflags/blob/4f06c3d0d6cbe9b1fb90ee9fb1c082b3bf9285f6/gflags/flagvalues.py#L868-L869 * https://github.com/HcashOrg/hcOmniEngine/blob/f1acc2ba3640a8e1c651ddc90a86d569d00704fe/msc-cli.py#L12 * https://github.com/vmtk/vmtk/blob/64675f598e31bc6be3d4fba903fb59bf1394f492/PypeS/pyperun.py#L35 * https://github.com/apache/lucene-solr/blob/cfa49401671b5f9958d46c04120df8c7e3f358be/dev-tools/scripts/svnBranchToGit.py#L783 I think Michel and Nick are correct here and the status-quo should be maintained for sys.argv[0]. Michel should not have to enumerate the use cases for a relative sys.argv[0]. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-10-21 17:44:21 | ammar2 | set | recipients: + ammar2, ncoghlan, vstinner, r.david.murray, yselivanov, Michel Desmoulin, xtreak |
| 2019-10-21 17:44:21 | ammar2 | set | messageid: <1571679861.38.0.760511700453.issue20443@roundup.psfhosted.org> |
| 2019-10-21 17:44:21 | ammar2 | link | issue20443 messages |
| 2019-10-21 17:44:21 | ammar2 | create | |

