From 136befde8657bd6fb1ead843fdbe589b1549f6f2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Jan 2026 14:01:05 +0100 Subject: [PATCH] Fix write() call --- src/ifcopenshell-python/ifcopenshell/file.py | 2 +- src/ifcwrap/IfcParseWrapper.i | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 5e3d751c41..8713dd4f66 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -879,7 +879,7 @@ class file_mixin: raise NotImplementedError("Writing .ifcXML files is not supported") if format == ".ifcZIP": return self.write(path, ".ifc", zipped=True) - self.write(str(path)) + self._write(str(path)) if zipped: unzipped_path = path.with_suffix(format) diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index 39d3e22c65..f32ea14cef 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -224,7 +224,7 @@ private: throw IfcParse::IfcException("Only entities with ids are supported for get_total_inverses. Provided entity: '" + e.declaration().name() + "'."); } - void write(const std::string& fn) { + void _write(const std::string& fn) { std::ofstream f(IfcUtil::path::from_utf8(fn).c_str()); if (!f.good()) { throw std::runtime_error("Failed to write to path: '" + fn + "', check folder and file permissions.");