mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +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
|
filename = f
|
||||||
try:
|
try:
|
||||||
f = ifcopenshell.open(f)
|
f = ifcopenshell.open(f, readonly=True)
|
||||||
except ifcopenshell.SchemaError as e:
|
except ifcopenshell.SchemaError as e:
|
||||||
current_dir_files = {fn.lower(): fn for fn in os.listdir(".")}
|
current_dir_files = {fn.lower(): fn for fn in os.listdir(".")}
|
||||||
schema_name = str(e).split(" ")[-1].lower()
|
schema_name = str(e).split(" ")[-1].lower()
|
||||||
|
|||||||
Reference in New Issue
Block a user