mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
ifc2sql - close cursor too
Important on Windows if someone is using Patcher explicitly and `self.c` is not garbage collected and file stays locked and cannot be moved.
This commit is contained in:
@@ -224,6 +224,7 @@ class Patcher(ifcpatch.BasePatcher):
|
||||
self.c.execute("INSERT INTO geometry VALUES (%s, %s, %s, %s, %s, %s);", row)
|
||||
|
||||
self.db.commit()
|
||||
self.c.close() # Important for static use of Patcher on Windows.
|
||||
self.db.close()
|
||||
|
||||
def create_geometry(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user