Merge pull request #1113 from pypeclub/bugfix/parse_global_environments

Parse global environments
This commit is contained in:
Milan Kolar 2021-03-11 13:08:15 +01:00 committed by GitHub
commit 382d54015e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,10 @@ def set_pype_global_environments() -> None:
# TODO Global environments will be stored in "general" settings so loading
# will be modified and can be done in igniter.
env = acre.merge(all_env["global"], dict(os.environ))
env = acre.merge(
acre.parse(all_env["global"]),
dict(os.environ)
)
os.environ.clear()
os.environ.update(env)