From 05488bd9d5531189e49bdbd5a960dacb3dd56772 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 30 Dec 2022 17:02:04 +0100 Subject: [PATCH] global: colorspace rename function --- openpype/pipeline/colorspace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/pipeline/colorspace.py b/openpype/pipeline/colorspace.py index 1643a792ae..536ead2ad0 100644 --- a/openpype/pipeline/colorspace.py +++ b/openpype/pipeline/colorspace.py @@ -18,7 +18,7 @@ log = Logger.get_logger(__name__) @contextlib.contextmanager -def make_temp_file(): +def _make_temp_json_file(): try: # Store dumped json to temporary file temporary_json_file = tempfile.NamedTemporaryFile( @@ -139,7 +139,7 @@ def validate_imageio_colorspace_in_config(config_path, colorspace_name): def get_ocio_config_colorspaces(config_path): - with make_temp_file() as tmp_json_path: + with _make_temp_json_file() as tmp_json_path: # Prepare subprocess arguments args = [ "run", get_ocio_config_script_path(),