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 damon-atkins
Recipients asvetlov, chris.jerdonek, cvrebert, damon-atkins, docs@python, eryksun, ned.deily, paul.moore, pepalogik, python-dev, steve.dower, tim.golden, wolma, zach.ware
Date 2018-06-13.10:11:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528884705.65.0.947875510639.issue15533@psf.upfronthosting.co.za>
In-reply-to
Content
I see from this. That this is still an issue
https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1146

Is it not a solution to
save current directory location
chdir(cwd) before calling  _winapi.CreateProcess()
restore the original directory.

This will result in the cwd being searched for the executable, which most people would expect to happen.  It seems CreateProcess does not change to cwd until after the file is checked for existence or loaded.
History
Date User Action Args
2018-06-13 10:11:45damon-atkinssetrecipients: + damon-atkins, paul.moore, tim.golden, ned.deily, cvrebert, asvetlov, chris.jerdonek, docs@python, python-dev, zach.ware, eryksun, steve.dower, pepalogik, wolma
2018-06-13 10:11:45damon-atkinssetmessageid: <1528884705.65.0.947875510639.issue15533@psf.upfronthosting.co.za>
2018-06-13 10:11:45damon-atkinslinkissue15533 messages
2018-06-13 10:11:45damon-atkinscreate