mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
read-only validate
This commit is contained in:
@@ -427,7 +427,7 @@ def validate(f: Union[ifcopenshell.file, str], logger: Union[Logger, json_logger
|
||||
|
||||
filename = f
|
||||
try:
|
||||
f = ifcopenshell.open(f)
|
||||
f = ifcopenshell.open(f, readonly=True)
|
||||
except ifcopenshell.SchemaError as e:
|
||||
current_dir_files = {fn.lower(): fn for fn in os.listdir(".")}
|
||||
schema_name = str(e).split(" ")[-1].lower()
|
||||
|
||||
Reference in New Issue
Block a user