mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
global: colorspace rename function
This commit is contained in:
parent
56aca63056
commit
05488bd9d5
1 changed files with 2 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue