global: colorspace rename function

This commit is contained in:
Jakub Jezek 2022-12-30 17:02:04 +01:00
parent 56aca63056
commit 05488bd9d5
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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(),