read-only validate

This commit is contained in:
Thomas Krijnen
2025-09-10 09:10:03 +02:00
parent 761b69ebfe
commit 8ca9bd63dc
@@ -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()