Merge branch 'hotfix/PYPE-761-config-ocio-path-slashes' into develop

This commit is contained in:
Milan Kolar 2020-03-17 16:28:57 +01:00
commit 1ea3d5e6ef

View file

@ -619,7 +619,8 @@ class WorkfileSettings(object):
# third set ocio custom path
if root_dict.get("customOCIOConfigPath"):
self._root_node["customOCIOConfigPath"].setValue(
str(root_dict["customOCIOConfigPath"]).format(**os.environ)
str(root_dict["customOCIOConfigPath"]).format(
**os.environ).replace("\\", "/")
)
log.debug("nuke.root()['{}'] changed to: {}".format(
"customOCIOConfigPath", root_dict["customOCIOConfigPath"]))