FIx MVD module

This commit is contained in:
johltn
2019-03-04 12:47:28 +01:00
committed by Thomas Krijnen
parent 9052721a00
commit a800a9e7c7
2 changed files with 7 additions and 3 deletions
@@ -1,10 +1,8 @@
import sys
import mvdxml_expression
from . import mvdxml_expression
from xml.dom.minidom import parse, Element
import sparql
class rule(object):
"""
A class for representing an mvdXML EntityRule or AttributeRule
@@ -183,6 +181,7 @@ class concept_root(object):
if __name__ == "__main__":
if len(sys.argv) == 3:
from . import sparql
ttlfn, mvdfn = sys.argv[1:]
sparql.derive_prefix(ttlfn)
ttlfn = sparql.infer_subtypes(ttlfn)
+5
View File
@@ -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/occ_utils.py"
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")
ENDIF()
ELSE()