Message319446
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. |
|
Date |
User |
Action |
Args |
2018-06-13 10:11:45 | damon-atkins | set | recipients:
+ 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:45 | damon-atkins | set | messageid: <1528884705.65.0.947875510639.issue15533@psf.upfronthosting.co.za> |
2018-06-13 10:11:45 | damon-atkins | link | issue15533 messages |
2018-06-13 10:11:45 | damon-atkins | create | |
|