From ad677f728667fb9fadbea85bf2206981626d8809 Mon Sep 17 00:00:00 2001 From: Eneko Martin-Martinez Date: Mon, 11 Mar 2024 18:13:18 +0100 Subject: [PATCH] Close Excel file --- excels2vensim/_version.py | 2 +- excels2vensim/excels2vensim.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/excels2vensim/_version.py b/excels2vensim/_version.py index 9e78220..f075dd3 100644 --- a/excels2vensim/_version.py +++ b/excels2vensim/_version.py @@ -1 +1 @@ -__version__ = "0.14.0" +__version__ = "0.14.1" diff --git a/excels2vensim/excels2vensim.py b/excels2vensim/excels2vensim.py index e8926c4..6a3fed4 100644 --- a/excels2vensim/excels2vensim.py +++ b/excels2vensim/excels2vensim.py @@ -397,6 +397,8 @@ def _write_cellrange(name, file, sheet, cellrange, force): new_range = DefinedName( name, attr_text=cellrange, localSheetId=sheetId) local_cellranges.add(new_range) + # Close file + wb.close() @staticmethod def _col_to_num(col):