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.19:37:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574710627.65.0.0401591414619.issue38905@roundup.psfhosted.org>
In-reply-to
Content
> `shutil.which` could be a direction, but still not enough since it’d break `flit install --python=py` because that’s give you the location of py.exe, not the actual interperter.

This would be fine if you still run the process to get its sys.executable.

Your specific example would never have worked, FWIW, as it always would have picked up pythonA rather than the application one or the base one, unless you were relying on python3/python3.7 not being available on Windows (which is no longer true - they are included in the Store package now).
History
Date User Action Args
2019-11-25 19:37:07steve.dowersetrecipients: + steve.dower, paul.moore, eric.smith, tim.golden, zach.ware, eryksun, uranusjr
2019-11-25 19:37:07steve.dowersetmessageid: <1574710627.65.0.0401591414619.issue38905@roundup.psfhosted.org>
2019-11-25 19:37:07steve.dowerlinkissue38905 messages
2019-11-25 19:37:07steve.dowercreate