fix: version check

This commit is contained in:
Swann
2021-11-05 15:39:46 +01:00
parent 6f02b38b0e
commit 0681b53141
7 changed files with 12 additions and 12 deletions

View File

@ -134,7 +134,7 @@ def install_modules(dependencies: list, python_path: str, install_dir: str):
module_can_be_imported(package_name)
def register():
if bpy.app.version[1] >= 91:
if bpy.app.version >= (2,91,0):
python_binary_path = sys.executable
else:
python_binary_path = bpy.app.binary_path_python