mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
ensure startup.py will by always added to environment
This commit is contained in:
parent
baf88f1358
commit
14e7a914ce
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ class ResolveLaunchLastWorkfile(PreLaunchHook):
|
|||
app_groups = ["resolve"]
|
||||
|
||||
def execute(self):
|
||||
self.set_startup_script()
|
||||
|
||||
if not self.data.get("start_last_workfile"):
|
||||
self.log.info("It is set to not start last workfile on start.")
|
||||
return
|
||||
|
|
@ -35,6 +37,7 @@ class ResolveLaunchLastWorkfile(PreLaunchHook):
|
|||
key = "OPENPYPE_RESOLVE_OPEN_ON_LAUNCH"
|
||||
self.launch_context.env[key] = last_workfile
|
||||
|
||||
def set_startup_script(self):
|
||||
# Set the openpype prelaunch startup script path for easy access
|
||||
# in the LUA .scriptlib code
|
||||
op_resolve_root = os.path.dirname(openpype.hosts.resolve.__file__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue