[issue36085] Enable better DLL resolution

Steve Dower report at bugs.python.org
Sat Feb 23 18:23:44 EST 2019


Steve Dower <steve.dower at python.org> added the comment:

> Correct me if I'm wrong, don't process launches use the `env` kwarg for Popen, not the raw os.environ['PATH']?

If you don't provide env, it'll use the current process's environment, and if you do provide it without copying at least some entries, chances are your process won't start (and in general, you copy the current value and add to it). I've never seen anyone try to reset PATH here, nor would I recommend it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36085>
_______________________________________


More information about the Python-bugs-list mailing list