From a414fc53f614c193c52b723ebdbbc66ece45dbd1 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Wed, 7 Feb 2024 16:54:00 +0100 Subject: [PATCH] use 'AYON_RESOLVE_OPEN_ON_LAUNCH' instead of 'OPENPYPE_RESOLVE_OPEN_ON_LAUNCH' --- .../hosts/resolve/hooks/pre_resolve_last_workfile.py | 4 ++-- client/ayon_core/hosts/resolve/startup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ayon_core/hosts/resolve/hooks/pre_resolve_last_workfile.py b/client/ayon_core/hosts/resolve/hooks/pre_resolve_last_workfile.py index c0b38ab757..d82651289c 100644 --- a/client/ayon_core/hosts/resolve/hooks/pre_resolve_last_workfile.py +++ b/client/ayon_core/hosts/resolve/hooks/pre_resolve_last_workfile.py @@ -28,8 +28,8 @@ class PreLaunchResolveLastWorkfile(PreLaunchHook): # Add path to launch environment for the startup script to pick up self.log.info( - "Setting OPENPYPE_RESOLVE_OPEN_ON_LAUNCH to launch " + "Setting AYON_RESOLVE_OPEN_ON_LAUNCH to launch " f"last workfile: {last_workfile}" ) - key = "OPENPYPE_RESOLVE_OPEN_ON_LAUNCH" + key = "AYON_RESOLVE_OPEN_ON_LAUNCH" self.launch_context.env[key] = last_workfile diff --git a/client/ayon_core/hosts/resolve/startup.py b/client/ayon_core/hosts/resolve/startup.py index f021f35542..174a2878c5 100644 --- a/client/ayon_core/hosts/resolve/startup.py +++ b/client/ayon_core/hosts/resolve/startup.py @@ -46,7 +46,7 @@ def open_workfile(path): def main(): # Open last workfile - workfile_path = os.environ.get("OPENPYPE_RESOLVE_OPEN_ON_LAUNCH") + workfile_path = os.environ.get("AYON_RESOLVE_OPEN_ON_LAUNCH") if workfile_path and os.path.exists(workfile_path): log.info(f"Opening last workfile: {workfile_path}")