Author steve.dower
Recipients bar.harel, bobjalex, eryksun, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2015-10-05.19:58:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444075136.28.0.336877578087.issue24505@psf.upfronthosting.co.za>
In-reply-to
Content
The Win32 API function linked by eryksun is the correct way to determine whether to include the current directory in the search - the doc specifically refers to matching cmd.exe's behaviour (searching ".;%PATH%" vs. just "%PATH%").

The PATHEXT behaviour should be to look for the name as provided first, followed be appending each extension. So looking for "python" will look for ["python", *("python" + p for p in getenv('PATHEXT').split(';'))] in that order.
History
Date User Action Args
2015-10-05 19:58:56steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, r.david.murray, zach.ware, eryksun, bobjalex, bar.harel
2015-10-05 19:58:56steve.dowersetmessageid: <1444075136.28.0.336877578087.issue24505@psf.upfronthosting.co.za>
2015-10-05 19:58:56steve.dowerlinkissue24505 messages
2015-10-05 19:58:56steve.dowercreate