Bases: PreLaunchHook
Special hook to configure startup script.
Source code in client/ayon_resolve/hooks/pre_resolve_startup.py
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | class PreLaunchResolveStartup(PreLaunchHook):
"""Special hook to configure startup script.
"""
order = 11
app_groups = {"resolve"}
launch_types = {LaunchTypes.local}
def execute(self):
# Set the openpype prelaunch startup script path for easy access
# in the LUA .scriptlib code
script_path = os.path.join(RESOLVE_ADDON_ROOT, "startup.py")
key = "AYON_RESOLVE_STARTUP_SCRIPT"
self.launch_context.env[key] = script_path
self.log.info(
f"Setting AYON_RESOLVE_STARTUP_SCRIPT to: {script_path}"
)
|