mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed usage of AVALON_SCHEMA
This commit is contained in:
parent
c33f86679d
commit
8680e84178
3 changed files with 3 additions and 9 deletions
|
|
@ -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))
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,6 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
keys = [
|
||||
"PYTHONPATH",
|
||||
"PATH",
|
||||
"AVALON_SCHEMA",
|
||||
"AVALON_PROJECT",
|
||||
"AVALON_ASSET",
|
||||
"AVALON_TASK",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue