mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
downstream: dev_environment.py: detect Python 3.13 on any Blender 5.1+
This commit is contained in:
@@ -78,7 +78,8 @@ BONSAI_PATH = find_bonsai_path()
|
|||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
||||||
# Never changed by user.
|
# 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"
|
PACKAGE_PATH = BLENDER_PATH / rf"extensions/.local/lib/python{PYTHON_VERSION}/site-packages"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user