[docs] [issue15451] PATH is not honored in subprocess.Popen in win32
report at bugs.python.org
Sun Jul 29 23:51:12 CEST 2012
Richard Oudkerk added the comment:
> What I understand you two as saying is that there seems to be an
> undocumented difference in execxxe between unix and windows which has been
> carried over to subprocess.
No. There is no difference between the platforms in the behaviour of os.execvpe(). os.execvpe() is simply implemented by trying execve() with a list of candidate executable paths until one of them works -- see _execvpe() in os.py.
Whether this difference from the behaviour of Posix's execvpe() was deliberate, I don't know.
The difference between the platforms in Python 2.x is caused by the fact that subprocess uses os.execvpe() on Unix and CreateProcess() on Windows.
In Python 3.x, os.execvpe() is no longer used on Unix, but the old behaviour has been deliberately maintained. So the difference in behaviour is still present in Python 3.x.
Python tracker <report at bugs.python.org>
More information about the docs