mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
simplify general settings conversion
This commit is contained in:
parent
d8c8f7f0ec
commit
7e2331467d
4 changed files with 14 additions and 47 deletions
|
|
@ -15,7 +15,8 @@ from .constants import (
|
|||
|
||||
from .ayon_settings import (
|
||||
get_ayon_project_settings,
|
||||
get_ayon_system_settings
|
||||
get_ayon_system_settings,
|
||||
get_ayon_settings,
|
||||
)
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
@ -253,14 +254,9 @@ def get_current_project_settings():
|
|||
return get_project_settings(project_name)
|
||||
|
||||
|
||||
def get_global_settings():
|
||||
default_settings = load_openpype_default_settings()
|
||||
return default_settings["system_settings"]["general"]
|
||||
|
||||
|
||||
def get_general_environments():
|
||||
value = get_system_settings()
|
||||
return value["general"]["environment"]
|
||||
settings = get_ayon_settings()
|
||||
return json.loads(settings["core"]["environments"])
|
||||
|
||||
|
||||
def get_system_settings(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue