From c64fdd19ddb17f6c9a7b778df65f25357c25522c Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 3 Dec 2020 16:08:50 +0100 Subject: [PATCH] system_settings to get_system_settings --- pype/lib/applications.py | 2 +- pype/plugins/maya/publish/submit_maya_muster.py | 4 ++-- pype/tools/pyblish_pype/model.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pype/lib/applications.py b/pype/lib/applications.py index 9b6e364a4c..bee51d0570 100644 --- a/pype/lib/applications.py +++ b/pype/lib/applications.py @@ -8,7 +8,7 @@ from abc import ABCMeta, abstractmethod import six -from pype.settings import system_settings, environments +from pype.settings import get_system_settings, get_environments from ..api import Logger from .python_module_tools import ( diff --git a/pype/plugins/maya/publish/submit_maya_muster.py b/pype/plugins/maya/publish/submit_maya_muster.py index df75fce1a4..65889bf068 100644 --- a/pype/plugins/maya/publish/submit_maya_muster.py +++ b/pype/plugins/maya/publish/submit_maya_muster.py @@ -11,7 +11,7 @@ from avalon.vendor import requests import pyblish.api from pype.hosts.maya import lib -from pype.api import system_settings +from pype.api import get_system_settings # mapping between Maya renderer names and Muster template ids @@ -25,7 +25,7 @@ def _get_template_id(renderer): :rtype: int """ - templates = system_settings()["modules"]["Muster"]["templates_mapping"] + templates = get_system_settings()["modules"]["Muster"]["templates_mapping"] if not templates: raise RuntimeError(("Muster template mapping missing in pype-settings")) try: diff --git a/pype/tools/pyblish_pype/model.py b/pype/tools/pyblish_pype/model.py index 8c9bc07d7e..88dce679f7 100644 --- a/pype/tools/pyblish_pype/model.py +++ b/pype/tools/pyblish_pype/model.py @@ -35,7 +35,7 @@ from six import text_type from .vendor import qtawesome from .constants import PluginStates, InstanceStates, GroupStates, Roles -from pype.api import system_settings +from pype.api import get_system_settings # ItemTypes @@ -104,7 +104,7 @@ class IntentModel(QtGui.QStandardItemModel): self.default_index = 0 intents_preset = ( - system_settings() + get_system_settings() .get("modules", {}) .get("Ftrack", {}) .get("intent", {})