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 <rep...@bugs.python.org> <http://bugs.python.org/issue15451> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com