From 8ca9bd63dc2c282ed7aad2b678fe7a5ebb534088 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 10 Sep 2025 09:10:03 +0200 Subject: [PATCH] read-only validate --- src/ifcopenshell-python/ifcopenshell/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 5765231c0b..2b8ad920f0 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -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()