mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 01:31:00 +00:00
Allow case insensitive IFC file extensions when exporting
This commit is contained in:
@@ -48,7 +48,7 @@ class IfcExporter:
|
|||||||
self.sync_deletions()
|
self.sync_deletions()
|
||||||
self.sync_all_objects()
|
self.sync_all_objects()
|
||||||
self.sync_edited_objects()
|
self.sync_edited_objects()
|
||||||
extension = self.ifc_export_settings.output_file.split(".")[-1]
|
extension = self.ifc_export_settings.output_file.split(".")[-1].lower()
|
||||||
if extension == "ifczip":
|
if extension == "ifczip":
|
||||||
with tempfile.TemporaryDirectory() as unzipped_path:
|
with tempfile.TemporaryDirectory() as unzipped_path:
|
||||||
filename, ext = os.path.splitext(os.path.basename(self.ifc_export_settings.output_file))
|
filename, ext = os.path.splitext(os.path.basename(self.ifc_export_settings.output_file))
|
||||||
|
|||||||
Reference in New Issue
Block a user