removed usage of AVALON_SCHEMA

This commit is contained in:
Jakub Trllo 2022-04-19 18:05:48 +02:00
parent c33f86679d
commit 8680e84178
3 changed files with 3 additions and 9 deletions

View file

@ -488,7 +488,6 @@ class MayaSubmitMuster(pyblish.api.InstancePlugin):
"MAYA_RENDER_DESC_PATH",
"MAYA_MODULE_PATH",
"ARNOLD_PLUGIN_PATH",
"AVALON_SCHEMA",
"FTRACK_API_KEY",
"FTRACK_API_USER",
"FTRACK_SERVER",
@ -547,4 +546,3 @@ class MayaSubmitMuster(pyblish.api.InstancePlugin):
"%f=%d was rounded off to nearest integer"
% (value, int(value))
)

View file

@ -242,7 +242,6 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
keys = [
"PYTHONPATH",
"PATH",
"AVALON_SCHEMA",
"AVALON_PROJECT",
"AVALON_ASSET",
"AVALON_TASK",

View file

@ -118,15 +118,12 @@ _cache = {
def _precache():
"""Store available schemas in-memory for reduced disk access"""
global _CACHED
if os.environ.get('AVALON_SCHEMA'):
schema_dir = os.environ['AVALON_SCHEMA']
else:
current_dir = os.path.dirname(os.path.abspath(__file__))
schema_dir = os.path.join(current_dir, "schema")
repos_root = os.environ["OPENPYPE_REPOS_ROOT"]
schema_dir = os.path.join(repos_root, "schema")
"""Store available schemas in-memory for reduced disk access"""
for schema in os.listdir(schema_dir):
if schema.startswith(("_", ".")):
continue