mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 17:20:04 +00:00
FIx MVD module
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
import mvdxml_expression
|
from . import mvdxml_expression
|
||||||
|
|
||||||
from xml.dom.minidom import parse, Element
|
from xml.dom.minidom import parse, Element
|
||||||
|
|
||||||
import sparql
|
|
||||||
|
|
||||||
class rule(object):
|
class rule(object):
|
||||||
"""
|
"""
|
||||||
A class for representing an mvdXML EntityRule or AttributeRule
|
A class for representing an mvdXML EntityRule or AttributeRule
|
||||||
@@ -183,6 +181,7 @@ class concept_root(object):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
if len(sys.argv) == 3:
|
if len(sys.argv) == 3:
|
||||||
|
from . import sparql
|
||||||
ttlfn, mvdfn = sys.argv[1:]
|
ttlfn, mvdfn = sys.argv[1:]
|
||||||
sparql.derive_prefix(ttlfn)
|
sparql.derive_prefix(ttlfn)
|
||||||
ttlfn = sparql.infer_subtypes(ttlfn)
|
ttlfn = sparql.infer_subtypes(ttlfn)
|
||||||
|
|||||||
@@ -94,6 +94,11 @@ IF(PYTHONINTERP_FOUND AND NOT "${PYTHON_EXECUTABLE}" STREQUAL "")
|
|||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/geom/main.py"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/geom/main.py"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/geom/occ_utils.py"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/geom/occ_utils.py"
|
||||||
DESTINATION "${python_package_dir}/ifcopenshell/geom")
|
DESTINATION "${python_package_dir}/ifcopenshell/geom")
|
||||||
|
INSTALL(FILES
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/mvd/__init__.py"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/mvd/sparql.py"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/mvd/mvdxml_expression.py"
|
||||||
|
DESTINATION "${python_package_dir}/ifcopenshell/mvd")
|
||||||
INSTALL(TARGETS _ifcopenshell_wrapper DESTINATION "${python_package_dir}/ifcopenshell")
|
INSTALL(TARGETS _ifcopenshell_wrapper DESTINATION "${python_package_dir}/ifcopenshell")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|||||||
Reference in New Issue
Block a user