From 7b2c54b97a896f560e9c849e1c1329a98c808b63 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Wed, 7 Feb 2024 16:52:24 +0100 Subject: [PATCH] use 'AYON_OPEN_WORKFILE_POST_INITIALIZATION' instead of 'OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION' --- client/ayon_core/hosts/maya/hooks/pre_auto_load_plugins.py | 2 +- .../hosts/maya/hooks/pre_open_workfile_post_initialization.py | 2 +- client/ayon_core/hosts/maya/startup/userSetup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ayon_core/hosts/maya/hooks/pre_auto_load_plugins.py b/client/ayon_core/hosts/maya/hooks/pre_auto_load_plugins.py index 599a75feb7..ed294da125 100644 --- a/client/ayon_core/hosts/maya/hooks/pre_auto_load_plugins.py +++ b/client/ayon_core/hosts/maya/hooks/pre_auto_load_plugins.py @@ -23,7 +23,7 @@ class MayaPreAutoLoadPlugins(PreLaunchHook): # Force post initialization so our dedicated plug-in load can run # prior to Maya opening a scene file. - key = "OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION" + key = "AYON_OPEN_WORKFILE_POST_INITIALIZATION" self.launch_context.env[key] = "1" self.log.debug("Explicit plugins loading.") diff --git a/client/ayon_core/hosts/maya/hooks/pre_open_workfile_post_initialization.py b/client/ayon_core/hosts/maya/hooks/pre_open_workfile_post_initialization.py index 11d7172994..6bf678474f 100644 --- a/client/ayon_core/hosts/maya/hooks/pre_open_workfile_post_initialization.py +++ b/client/ayon_core/hosts/maya/hooks/pre_open_workfile_post_initialization.py @@ -22,5 +22,5 @@ class MayaPreOpenWorkfilePostInitialization(PreLaunchHook): self.data.pop("start_last_workfile") self.log.debug("Opening workfile post initialization.") - key = "OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION" + key = "AYON_OPEN_WORKFILE_POST_INITIALIZATION" self.launch_context.env[key] = "1" diff --git a/client/ayon_core/hosts/maya/startup/userSetup.py b/client/ayon_core/hosts/maya/startup/userSetup.py index 588dd626b9..882f2df27c 100644 --- a/client/ayon_core/hosts/maya/startup/userSetup.py +++ b/client/ayon_core/hosts/maya/startup/userSetup.py @@ -35,7 +35,7 @@ if explicit_plugins_loading["enabled"]: ) # Open Workfile Post Initialization. -key = "OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION" +key = "AYON_OPEN_WORKFILE_POST_INITIALIZATION" if bool(int(os.environ.get(key, "0"))): def _log_and_open(): path = os.environ["AVALON_LAST_WORKFILE"]