mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-05 20:06:25 +00:00
Fix #3085. Prioritise shipped BlenderBIM Add-on packages instead of system packages to avoid dependency clashes.
This commit is contained in:
@@ -34,7 +34,8 @@ bl_info = {
|
|||||||
if sys.modules.get("bpy", None):
|
if sys.modules.get("bpy", None):
|
||||||
# Process *.pth in /libs/site/packages to setup globally importable modules
|
# Process *.pth in /libs/site/packages to setup globally importable modules
|
||||||
# This is 3 levels deep as required by the static RPATH of ../../ from dependencies taken from Anaconda
|
# This is 3 levels deep as required by the static RPATH of ../../ from dependencies taken from Anaconda
|
||||||
site.addsitedir(os.path.join(os.path.dirname(os.path.realpath(__file__)), "libs", "site", "packages"))
|
# site.addsitedir(os.path.join(os.path.dirname(os.path.realpath(__file__)), "libs", "site", "packages"))
|
||||||
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "libs", "site", "packages"))
|
||||||
|
|
||||||
import blenderbim.bim
|
import blenderbim.bim
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user