mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Add the possibility to bundle binary modules for different architectures with the python-ifcopenshell module
This commit is contained in:
@@ -18,12 +18,25 @@
|
||||
###############################################################################
|
||||
|
||||
import os
|
||||
import sys
|
||||
import platform
|
||||
import functools
|
||||
|
||||
from functools import reduce
|
||||
|
||||
from . import guid
|
||||
from . import ifcopenshell_wrapper
|
||||
|
||||
python_distribution = os.path.join(platform.system().lower(),
|
||||
platform.architecture()[0],
|
||||
'python%s.%s' % platform.python_version_tuple()[:2])
|
||||
sys.path.append(os.path.abspath(os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
'lib', python_distribution)))
|
||||
|
||||
try:
|
||||
from . import ifcopenshell_wrapper
|
||||
except:
|
||||
raise ImportError("IfcOpenShell not built for '%s'" % python_distribution)
|
||||
|
||||
class entity_instance(object):
|
||||
def __init__(self, e):
|
||||
|
||||
Reference in New Issue
Block a user