From 8d2b783b4acd76b04edf6cfaf159263a62739206 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 5 Dec 2024 17:23:56 +0500 Subject: [PATCH] fix small bug in 939cc63ca --- src/ifcpatch/ifcpatch/recipes/SplitByBuildingStorey.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcpatch/ifcpatch/recipes/SplitByBuildingStorey.py b/src/ifcpatch/ifcpatch/recipes/SplitByBuildingStorey.py index fee1421314..c8b8b1cd51 100644 --- a/src/ifcpatch/ifcpatch/recipes/SplitByBuildingStorey.py +++ b/src/ifcpatch/ifcpatch/recipes/SplitByBuildingStorey.py @@ -94,6 +94,7 @@ class Patcher: new_ifc.write(dest) if temp_file is not None: + temp_file.close() os.unlink(temp_file.name) def is_in_storey(self, element: ifcopenshell.entity_instance, storey: ifcopenshell.entity_instance) -> bool: