mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
hound
This commit is contained in:
parent
89d3a3ae22
commit
2f89cadd8a
1 changed files with 6 additions and 4 deletions
|
|
@ -474,14 +474,16 @@ def compatibility_check_config_version(config_path, major=1, minor=None):
|
||||||
# TODO: refactor this so it is not imported but part of this file
|
# TODO: refactor this so it is not imported but part of this file
|
||||||
from openpype.scripts.ocio_wrapper import _get_version_data
|
from openpype.scripts.ocio_wrapper import _get_version_data
|
||||||
|
|
||||||
CachedData.config_version_data[config_path] = _get_version_data(config_path)
|
CachedData.config_version_data[config_path] = \
|
||||||
|
_get_version_data(config_path)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# python environment is not compatible with PyOpenColorIO
|
# python environment is not compatible with PyOpenColorIO
|
||||||
# needs to be run in subprocess
|
# needs to be run in subprocess
|
||||||
CachedData.config_version_data[config_path] = _get_wrapped_with_subprocess(
|
CachedData.config_version_data[config_path] = \
|
||||||
"config", "get_version", config_path=config_path
|
_get_wrapped_with_subprocess(
|
||||||
)
|
"config", "get_version", config_path=config_path
|
||||||
|
)
|
||||||
|
|
||||||
# check major version
|
# check major version
|
||||||
if CachedData.config_version_data[config_path]["major"] != major:
|
if CachedData.config_version_data[config_path]["major"] != major:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue