From 8798bec8f0c2dda76cb33687ef092a4914fd31fd Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 3 Dec 2020 00:03:11 +0100 Subject: [PATCH] refactor maya muster submit config to settings --- pype/plugins/maya/publish/submit_maya_muster.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pype/plugins/maya/publish/submit_maya_muster.py b/pype/plugins/maya/publish/submit_maya_muster.py index ffe434048a..df75fce1a4 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 config +from pype.api import system_settings # mapping between Maya renderer names and Muster template ids @@ -25,10 +25,9 @@ def _get_template_id(renderer): :rtype: int """ - templates = config.get_presets()["muster"]["templates_mapping"] + templates = system_settings()["modules"]["Muster"]["templates_mapping"] if not templates: - raise RuntimeError(("Muster template mapping missing in pype-config " - "`presets/muster/templates_mapping.json`")) + raise RuntimeError(("Muster template mapping missing in pype-settings")) try: template_id = templates[renderer] except KeyError: