Fix version comparison

This commit is contained in:
Roy Nieterau 2023-06-29 00:46:53 +02:00
parent 82f9da2c8e
commit f947e2efe7

View file

@ -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