Why does the Nuke integration fail to start when I set the NUKE_PATH environment variable?
Our integrations set the
NUKE_PATH environment variable when launching Nuke so that our bootstrap script runs during the Nuke startup process.
tk-multi-launchapp that specifically defines the
NUKE_PATH prior to it executing the
If you’re setting this environment variable during the launch process using something like
os.environ['NUKE_PATH'] = "/my/custom/path", then the ShotGrid integration won’t ever be started, because you’ll have removed our startup script path from the environment variable.
Use this function in
tank.util to append or prepend your path to the
NUKE_PATH environment variable, while preserving the path to the Toolkit bootstrap:
Alternately, you can prepend your path using