[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg
Caleb Hattingh
report at bugs.python.org
Sat Mar 7 20:30:03 EST 2020
Caleb Hattingh <caleb.hattingh at gmail.com> added the comment:
dict syntax tools make it fairy easy to compose new dicts from old ones with overrides:
subprocess.run(..., env={**os.environ, 'FOO': ..., 'BAR', ...}, ...)
Would this be sufficient to avoid the copy/pasting boilerplate?
----------
nosy: +cjrh
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39857>
_______________________________________
More information about the Python-bugs-list
mailing list