From f947e2efe7cca2b359f4e574a133206cd3a6041c Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 29 Jun 2023 00:46:53 +0200 Subject: [PATCH] Fix version comparison --- openpype/pipeline/colorspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/pipeline/colorspace.py b/openpype/pipeline/colorspace.py index 269825f85f..d5f2624155 100644 --- a/openpype/pipeline/colorspace.py +++ b/openpype/pipeline/colorspace.py @@ -240,7 +240,7 @@ def get_data_subprocess(config_path, data_type): def compatible_python(): """Only 3.9 or higher can directly use PyOpenColorIO in ocio_wrapper""" compatible = False - if sys.version[0] == 3 and sys.version[1] >= 9: + if sys.version_info.major == 3 and sys.version_info.minor >= 9: compatible = True return compatible