Update client/ayon_core/pipeline/colorspace.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2024-08-09 13:31:25 +02:00 committed by GitHub
parent f9e0b05bf2
commit d51a04c8ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -700,18 +700,19 @@ def get_ocio_config_views(config_path):
def _get_config_path_from_profile_data(
data, data_type, template_data) -> dict:
profile, profile_type, template_data
):
"""Get config path from profile data.
Args:
data (dict[str, Any]): Profile data.
data_type (str): Profile type.
profile(dict[str, Any]): Profile data.
profile_type (str): Profile type.
template_data (dict[str, Any]): Template data.
Returns:
dict[str, str]: Config data with path and template.
"""
template = data[data_type]
template = profile[profile_type]
result = StringTemplate.format_strict_template(
template, template_data
)