mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use 'AYON_RESOLVE_OPEN_ON_LAUNCH' instead of 'OPENPYPE_RESOLVE_OPEN_ON_LAUNCH'
This commit is contained in:
parent
7b2c54b97a
commit
a414fc53f6
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue