Message319446
| 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: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 |
|