Brandt Bucher <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue39857>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com