[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg
Brandt Bucher
report at bugs.python.org
Sat Mar 7 21:33:17 EST 2020
Brandt Bucher <brandtbucher at gmail.com> added the comment:
Caleb's answer, using PEP 584's merge operator:
newenv = os.environ | {'FOO': ..., 'BAR': ...}
subprocess.run(..., env=new_env, ...)
----------
nosy: +brandtbucher
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39857>
_______________________________________
More information about the Python-bugs-list
mailing list