From ceac85ca021ee631a63dfaa9ac7c2abbcd36b30c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 29 Sep 2025 11:00:59 +1000 Subject: [PATCH] Temporarily revert to old build behaviour since new builds are failing. --- src/ifcopenshell-python/ifcopenshell/file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 09496f9be8..cf7b400dae 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -1036,7 +1036,10 @@ class file: @property def header(self): - h = self.wrapped_data.header() + try: # Temporary workaround until new builds are ready. See #7131. + h = self.wrapped_data.header() + except: + return self.wrapped_data.header object.__setattr__(h, "file_ref", lambda inst: entity_instance.wrap_value(inst, file=self)) return h