mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
renaming variable to make more sense
This commit is contained in:
parent
c166b5898a
commit
b8e054a50c
2 changed files with 7 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ log = Logger.get_logger(__name__)
|
|||
|
||||
class CachedData:
|
||||
remapping = None
|
||||
python3compatible = None
|
||||
has_compatible_ocio_package = None
|
||||
config_version_data = None
|
||||
ocio_config_colorspaces = {}
|
||||
|
||||
|
|
@ -459,17 +459,17 @@ def _get_wrapped_with_subprocess(command_group, command, **kwargs):
|
|||
# TODO: this should be part of ocio_wrapper.py
|
||||
def compatibility_check():
|
||||
"""Making sure PyOpenColorIO is importable"""
|
||||
if CachedData.python3compatible is not None:
|
||||
return CachedData.python3compatible
|
||||
if CachedData.has_compatible_ocio_package is not None:
|
||||
return CachedData.has_compatible_ocio_package
|
||||
|
||||
try:
|
||||
import PyOpenColorIO # noqa: F401
|
||||
CachedData.python3compatible = True
|
||||
CachedData.has_compatible_ocio_package = True
|
||||
except ImportError:
|
||||
CachedData.python3compatible = False
|
||||
CachedData.has_compatible_ocio_package = False
|
||||
|
||||
# compatible
|
||||
return CachedData.python3compatible
|
||||
return CachedData.has_compatible_ocio_package
|
||||
|
||||
|
||||
# TODO: this should be part of ocio_wrapper.py
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ class TestPipelineColorspace(TestPipeline):
|
|||
expected_hiero = "Gamma 2.2 Rec.709 - Texture"
|
||||
|
||||
# switch to python 2 compatibility mode
|
||||
colorspace.CachedData.python3compatible = False
|
||||
colorspace.CachedData.has_compatible_ocio_package = False
|
||||
|
||||
nuke_colorspace = colorspace.get_colorspace_name_from_filepath(
|
||||
nuke_filepath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue