downstream: dev_environment.py: detect Python 3.13 on any Blender 5.1+

This commit is contained in:
Andrej730
2026-07-22 17:59:34 +05:00
parent 4972556eb9
commit 036c74e901
+2 -1
View File
@@ -78,7 +78,8 @@ BONSAI_PATH = find_bonsai_path()
# ---------------------------
# Never changed by user.
PYTHON_VERSION = "3.13" if BLENDER_VERSION == "5.1" else "3.11"
BLENDER_VERSION_INT = tuple(map(int, BLENDER_VERSION.split(".")))
PYTHON_VERSION = "3.13" if BLENDER_VERSION_INT >= (5, 1) else "3.11"
PACKAGE_PATH = BLENDER_PATH / rf"extensions/.local/lib/python{PYTHON_VERSION}/site-packages"