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