use 'AYON_RESOLVE_STARTUP_SCRIPT' instead of 'OPENPYPE_RESOLVE_STARTUP_SCRIPT'

This commit is contained in:
Jakub Trllo 2024-02-07 16:54:24 +01:00
parent a414fc53f6
commit a263fe214d
2 changed files with 3 additions and 3 deletions

View file

@ -17,9 +17,9 @@ class PreLaunchResolveStartup(PreLaunchHook):
# in the LUA .scriptlib code
op_resolve_root = os.path.dirname(ayon_core.hosts.resolve.__file__)
script_path = os.path.join(op_resolve_root, "startup.py")
key = "OPENPYPE_RESOLVE_STARTUP_SCRIPT"
key = "AYON_RESOLVE_STARTUP_SCRIPT"
self.launch_context.env[key] = script_path
self.log.info(
f"Setting OPENPYPE_RESOLVE_STARTUP_SCRIPT to: {script_path}"
f"Setting AYON_RESOLVE_STARTUP_SCRIPT to: {script_path}"
)

View file

@ -5,7 +5,7 @@ function file_exists(name)
end
ayon_startup_script = os.getenv("OPENPYPE_RESOLVE_STARTUP_SCRIPT")
ayon_startup_script = os.getenv("AYON_RESOLVE_STARTUP_SCRIPT")
if ayon_startup_script ~= nil then
script = fusion:MapPath(ayon_startup_script)