fixing paths slashes in nuke api

This commit is contained in:
Jakub Jezek 2023-08-31 12:07:23 +02:00
parent cd9ec2b73a
commit d3c1b84835
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -2107,8 +2107,9 @@ class WorkfileSettings(object):
# set ocio config path # set ocio config path
if config_data: if config_data:
config_path = config_data["path"].replace("\\", "/")
log.info("OCIO config path found: `{}`".format( log.info("OCIO config path found: `{}`".format(
config_data["path"])) config_path))
# check if there's a mismatch between environment and settings # check if there's a mismatch between environment and settings
correct_settings = self._is_settings_matching_environment( correct_settings = self._is_settings_matching_environment(
@ -2233,7 +2234,7 @@ Reopening Nuke should synchronize these paths and resolve any discrepancies.
Returns: Returns:
str: OCIO config path with environment variable TCL expression str: OCIO config path with environment variable TCL expression
""" """
config_path = config_data["path"] config_path = config_data["path"].replace("\\", "/")
config_template = config_data["template"] config_template = config_data["template"]
included_vars = self._get_included_vars(config_template) included_vars = self._get_included_vars(config_template)