use 'AYON_OPEN_WORKFILE_POST_INITIALIZATION' instead of 'OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION'

This commit is contained in:
Jakub Trllo 2024-02-07 16:52:24 +01:00
parent 5e90b551f6
commit 7b2c54b97a
3 changed files with 3 additions and 3 deletions

View file

@ -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.")

View file

@ -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"

View file

@ -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"]