This commit is contained in:
Jakub Jezek 2023-09-21 17:29:54 +02:00
parent 89d3a3ae22
commit 2f89cadd8a
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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
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:
# python environment is not compatible with PyOpenColorIO
# needs to be run in subprocess
CachedData.config_version_data[config_path] = _get_wrapped_with_subprocess(
"config", "get_version", config_path=config_path
)
CachedData.config_version_data[config_path] = \
_get_wrapped_with_subprocess(
"config", "get_version", config_path=config_path
)
# check major version
if CachedData.config_version_data[config_path]["major"] != major: