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 steve.dower
Recipients eric.smith, eryksun, paul.moore, steve.dower, tim.golden, uranusjr, zach.ware
Date 2019-11-25.21:06:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574715966.27.0.807768296108.issue38905@roundup.psfhosted.org>
In-reply-to
Content
> Perhaps generalize this as splitext(basename(sys.executable))[0] in
> order to support names other than "python" and "pythonw". It would have
> to handle quoting enough to ignore an initial double quote when parsing
> the executable name out of an args string, or _winapi could wrap the
> shell's CommandLineToArgvW function to handle this.

This is where we've hit the point of complexity that it would have to be added as a new API. And since it's now opt-in, we may as well document that shutil.which() is the recommended way to resolve a filename against PATH (and make that work properly... ISTR it has some inconsistencies with the OS).
History
Date User Action Args
2019-11-25 21:06:06steve.dowersetrecipients: + steve.dower, paul.moore, eric.smith, tim.golden, zach.ware, eryksun, uranusjr
2019-11-25 21:06:06steve.dowersetmessageid: <1574715966.27.0.807768296108.issue38905@roundup.psfhosted.org>
2019-11-25 21:06:06steve.dowerlinkissue38905 messages
2019-11-25 21:06:06steve.dowercreate