🐛 fix environment resolution

this will fix environment resolution of general settings in one pass
This commit is contained in:
Ondřej Samohel 2022-07-27 18:14:22 +02:00
parent 07ac291a05
commit 4c849e8d86
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -270,8 +270,11 @@ def set_openpype_global_environments() -> None:
general_env = get_general_environments()
# first resolve general environment because merge doesn't expect
# values to be list.
# TODO: switch to OpenPype environment functions
merged_env = acre.merge(
acre.parse(general_env),
acre.compute(acre.parse(general_env), cleanup=False),
dict(os.environ)
)
env = acre.compute(