mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
ifcopenshell.sql - fix error opening files similar to #5457
This commit is contained in:
@@ -19,6 +19,7 @@ from __future__ import annotations
|
|||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
|
import ifcopenshell.util.schema
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, NoReturn, Union, Optional, TYPE_CHECKING
|
from typing import Any, NoReturn, Union, Optional, TYPE_CHECKING
|
||||||
from . import ifcopenshell_wrapper
|
from . import ifcopenshell_wrapper
|
||||||
@@ -35,6 +36,8 @@ except ImportError as e:
|
|||||||
|
|
||||||
|
|
||||||
class sqlite(file):
|
class sqlite(file):
|
||||||
|
schema: ifcopenshell.util.schema.IFC_SCHEMA = "IFC4"
|
||||||
|
|
||||||
def __init__(self, filepath: str):
|
def __init__(self, filepath: str):
|
||||||
"""
|
"""
|
||||||
Open existing sqlite IFC database.
|
Open existing sqlite IFC database.
|
||||||
|
|||||||
Reference in New Issue
Block a user