[docs] [issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)
Eric V. Smith
report at bugs.python.org
Wed Mar 19 13:07:31 CET 2014
Eric V. Smith added the comment:
We don't always provide fully cross-platform functionality (see the os module for many examples), but we might be able to do better here. It might be some functionality we can add, it might be a documentation issue.
Note, for example, the subprocess.STARTUPINFO and subprocess.Popen creationflags argument. These expose Windows-only functionality.
I'm opposed to trying again with cwd added. There's a long history of security problems doing exactly this. It's why '.' is not in the PATH by default on Unix.
On my list of things to do is trace through exactly which scenarios work and don't work on Windows.
If you really want a more cross-platform solution, Cygwin python might work for you.
Python tracker <report at bugs.python.org>
More information about the docs