From c7e97d06bd802d05cdd42b930bb5935b5b63a7fd Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 24 Sep 2024 12:21:55 +0500 Subject: [PATCH] ifcopenshell.sql - fix error opening files similar to #5457 --- src/ifcopenshell-python/ifcopenshell/sql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/sql.py b/src/ifcopenshell-python/ifcopenshell/sql.py index bfa31027ea..1bbc3b5e36 100644 --- a/src/ifcopenshell-python/ifcopenshell/sql.py +++ b/src/ifcopenshell-python/ifcopenshell/sql.py @@ -19,6 +19,7 @@ from __future__ import annotations import re import json import ifcopenshell +import ifcopenshell.util.schema from pathlib import Path from typing import Any, NoReturn, Union, Optional, TYPE_CHECKING from . import ifcopenshell_wrapper @@ -35,6 +36,8 @@ except ImportError as e: class sqlite(file): + schema: ifcopenshell.util.schema.IFC_SCHEMA = "IFC4" + def __init__(self, filepath: str): """ Open existing sqlite IFC database.