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