Nuke Crashing when reading scripts made under an OCIO environment variable

Hey guys,

Experiencing a problem with Nuke crashing when opening .nk scripts made after setting an environment variable (OCIO="Z:…config.ocio)

Scenes prior to adding this variable work fine, the only difference in the files (in a text editor) are the new crashing files DONT have “customOCIOConfigPath Z:/…config.ocio” If I manually add that line in, the scene works fine. I’d rather not have to add this line is. I do have nuke.knobDefault(“Root.customOCIOConfigPath”, “Z:/…config.ocio”) in my innit file, not sure if this is creating confusion somewhere??

Anyone come across this before?