mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Fix incorrect python version detection for Blender 4.2
Basically this error message is back - https://i.imgur.com/ANQe0eg.png
This commit is contained in:
@@ -93,8 +93,17 @@ def format_debug_info(info: dict):
|
|||||||
|
|
||||||
|
|
||||||
if IN_BLENDER:
|
if IN_BLENDER:
|
||||||
|
|
||||||
def get_binary_info() -> dict[str, Any]:
|
def get_binary_info() -> dict[str, Any]:
|
||||||
info = {}
|
info = {}
|
||||||
|
py_version = sys.version_info
|
||||||
|
site_path = (
|
||||||
|
Path(bpy.utils.user_resource("EXTENSIONS"))
|
||||||
|
/ ".local"
|
||||||
|
/ "lib"
|
||||||
|
/ f"python{py_version.major}.{py_version.minor}"
|
||||||
|
/ "site-packages"
|
||||||
|
)
|
||||||
lib = site_path / "ifcopenshell"
|
lib = site_path / "ifcopenshell"
|
||||||
binary = next((i for i in lib.glob("_ifcopenshell_wrapper.*")), None)
|
binary = next((i for i in lib.glob("_ifcopenshell_wrapper.*")), None)
|
||||||
if binary is None:
|
if binary is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user