mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
removed backwards compatibility
This commit is contained in:
parent
8ae3ccdccb
commit
45a5538a5c
1 changed files with 2 additions and 11 deletions
13
start.py
13
start.py
|
|
@ -266,18 +266,9 @@ def set_openpype_global_environments() -> None:
|
|||
"""Set global OpenPype's environments."""
|
||||
import acre
|
||||
|
||||
try:
|
||||
from openpype.settings import get_general_environments
|
||||
from openpype.settings import get_general_environments
|
||||
|
||||
general_env = get_general_environments()
|
||||
|
||||
except Exception:
|
||||
# Backwards compatibility for OpenPype versions where
|
||||
# `get_general_environments` does not exists yet
|
||||
from openpype.settings import get_environments
|
||||
|
||||
all_env = get_environments()
|
||||
general_env = all_env["global"]
|
||||
general_env = get_general_environments()
|
||||
|
||||
merged_env = acre.merge(
|
||||
acre.parse(general_env),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue