diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 5f76c8dfcb..9a3807d837 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -563,8 +563,8 @@ if(COMPILE_SCHEMA) # Bootstrap the parser message(STATUS "Compiling schema, this will take a while...") execute_process( - COMMAND ${PYTHON_EXECUTABLE} bootstrap.py express.bnf - WORKING_DIRECTORY ../src/ifcexpressparser + COMMAND ${PYTHON_EXECUTABLE} bootstrap.py + WORKING_DIRECTORY ../src/ifcopenshell-python/ifcopenshell/express OUTPUT_FILE express_parser.py RESULT_VARIABLE SUCCESS ) @@ -575,7 +575,7 @@ if(COMPILE_SCHEMA) # Generate code execute_process( - COMMAND ${PYTHON_EXECUTABLE} ../ifcexpressparser/express_parser.py ../../${COMPILE_SCHEMA} + COMMAND ${PYTHON_EXECUTABLE} ../ifcopenshell-python/ifcopenshell/express/express_parser.py ../../${COMPILE_SCHEMA} WORKING_DIRECTORY ../src/ifcparse OUTPUT_VARIABLE COMPILED_SCHEMA_NAME ) diff --git a/src/ifcopenshell-python/ifcopenshell/express/bootstrap.py b/src/ifcopenshell-python/ifcopenshell/express/bootstrap.py index e7214bd89d..2e2fc2e120 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/bootstrap.py +++ b/src/ifcopenshell-python/ifcopenshell/express/bootstrap.py @@ -221,7 +221,7 @@ for id in sorted(to_emit): if __name__ == "__main__": print(r""" -# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py +# This file is generated by ifcopenshell.express.bootstrap from __future__ import annotations import os diff --git a/src/ifcopenshell-python/ifcopenshell/express/express_parser.py b/src/ifcopenshell-python/ifcopenshell/express/express_parser.py index 3548d3e136..34bb69585c 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/express_parser.py +++ b/src/ifcopenshell-python/ifcopenshell/express/express_parser.py @@ -1,5 +1,5 @@ -# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py +# This file is generated by ifcopenshell.express.bootstrap from __future__ import annotations import os