mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
also pass Application object to add_implementation_envs
This commit is contained in:
parent
6690f4a88c
commit
d43b3d1b2c
11 changed files with 12 additions and 12 deletions
|
|
@ -1090,7 +1090,7 @@ def prepare_host_environments(data, implementation_envs=True):
|
|||
loaded_env = _merge_env(acre.compute(env_values), data["env"])
|
||||
|
||||
final_env = None
|
||||
#
|
||||
# Add host specific environments
|
||||
if app.host_name and implementation_envs:
|
||||
module = __import__("openpype.hosts", fromlist=[app.host_name])
|
||||
host_module = getattr(module, app.host_name, None)
|
||||
|
|
@ -1101,7 +1101,7 @@ def prepare_host_environments(data, implementation_envs=True):
|
|||
)
|
||||
if add_implementation_envs:
|
||||
# Function may only modify passed dict without returning value
|
||||
final_env = add_implementation_envs(loaded_env)
|
||||
final_env = add_implementation_envs(loaded_env, app)
|
||||
|
||||
if final_env is None:
|
||||
final_env = loaded_env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue