[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1
Florian Bruhin
report at bugs.python.org
Wed Sep 16 10:00:21 CEST 2015
Florian Bruhin added the comment:
I just ran into this again - when trying to run `git` via subprocess with "env" set, I got:
# Start the process
try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
cwd,
> startupinfo)
E FileNotFoundError: [WinError 2] The system cannot find the file specified
This only seems to happen when starting my Python process in cmd.exe, not when it's started via my buildbot (CI).
Again, when passing shell=True everything worked - except when passing `cwd` as well, then it's broken again.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24493>
_______________________________________
More information about the Python-bugs-list
mailing list