OCIO for Windows and Mac users

How do you solve the problem with the paths of config.ocio when users work with Windows and Mac?

An environment variable is set up in Windows. This does not work reliably in macOS.

Windows
O:CG/Pipeline/OpenColorIO/OCIO_env/config.ocio

macOS
/Users/username/CG/Pipeline/OpenColorlO/OCIO_env/config.ocio

When the same Maya scene is opened with Mac, the following message appears:

Sure, I can select the file manually.

MacOS has a different way of setting environment variables. It’s not recommended to change system/user variables on it; however, you can create a shell script (shortcut) to load variables for the current session. Check the examples here. The shell script should look something like this:


export OCIO = "path/to/config.ocio"
/path/to/maya/maya.exe