AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 436 forks source link

Symbolic links in config path don't work #516

Open Narann opened 6 years ago

Narann commented 6 years ago

I reached a bug in Natron that seems to be related to OCIO: https://github.com/MrKepzie/Natron/issues/1719

This:

C:\app\inria\natron

Is a symlink to:

\\srvapp\app\inria\natron

OCIO env var is:

C:\app\inria\natron\2.3.4\Resources\OpenColorIO-Configs\blender\config.ocio

And it looks like OCIO can't reach the path because it's a Windows symbolic links to UNC paths:

ocio_error

1) Are we sure OCIO read the path C:\app\inria\natron\2.3.4\Resources\OpenColorIO-Configs\blender\config.ocio properly? 2) Would it be a Natron problem?

Thanks in advance! :)

doug-walker commented 1 year ago

The OCIO environment variable may not be set to a link. This is not a Windows-specific problem. The reason for this is that OCIO sets its working directory based on the link path (rather than where the link points to) and will therefore try to look for LUT files in the wrong place.

It probably would not be a lot of work to fix this, if someone feels that this would be important to support and would like to make a PR for it.