Allow passing an empty environment explicitly like env = {}

This commit is contained in:
Roy Nieterau 2023-03-29 17:57:12 +02:00
parent 5746ff588e
commit 9a71cfec41

View file

@ -198,7 +198,7 @@ def run_openpype_process(*args, **kwargs):
args = get_openpype_execute_args(*args)
env = kwargs.pop("env", None)
# Keep env untouched if are passed and not empty
if not env:
if env is None:
# Skip envs that can affect OpenPype process
# - fill more if you find more
env = clean_envs_for_openpype_process(os.environ)