mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Allow passing an empty environment explicitly like env = {}
This commit is contained in:
parent
5746ff588e
commit
9a71cfec41
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue