From 03ed84fa50e460909dc68194f31a9f68758f1351 Mon Sep 17 00:00:00 2001 From: Matthieu Debray <161845599+MatthieuDebray@users.noreply.github.com> Date: Wed, 3 Dec 2025 23:24:56 +0100 Subject: [PATCH 1/2] Update d3plot.py to support title2 support title2 --- src/lasso/dyna/d3plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lasso/dyna/d3plot.py b/src/lasso/dyna/d3plot.py index 2897300..ee87bf9 100644 --- a/src/lasso/dyna/d3plot.py +++ b/src/lasso/dyna/d3plot.py @@ -7365,7 +7365,7 @@ def _write_header_part_contact_interface_titles( # TITLE2 # yet another title, coz double is always more fun - if "title2" in self.header.title2: + if self.header.title2: ntype = 90000 # title words always have 4 bytes @@ -9722,3 +9722,4 @@ def enable_logger(enable: bool): LOGGER.setLevel(logging.DEBUG) else: LOGGER.setLevel(logging.NOTSET) + From 7d1c0435e7ceb78757526a3df33b94b0863f2689 Mon Sep 17 00:00:00 2001 From: Matthieu Debray <161845599+MatthieuDebray@users.noreply.github.com> Date: Wed, 3 Dec 2025 23:27:55 +0100 Subject: [PATCH 2/2] Update femzip_api.py change path of femzip lib when pyinstaller is used --- src/lasso/femzip/femzip_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lasso/femzip/femzip_api.py b/src/lasso/femzip/femzip_api.py index 4c5d328..2c97de2 100644 --- a/src/lasso/femzip/femzip_api.py +++ b/src/lasso/femzip/femzip_api.py @@ -223,6 +223,9 @@ def load_dynamic_library(path: Path) -> CDLL: # check executable rights if not os.access(path, os.X_OK) or not os.access(path, os.R_OK): + if getattr(sys, 'frozen', False): + # running in a bundle + path = os.path.join(sys._MEIPASS, os.path.basename(path)) os.chmod(path, os.stat(path).st_mode | stat.S_IEXEC | stat.S_IREAD) if not os.access(path, os.X_OK) or not os.access(path, os.R_OK): err_msg = "Library '{0}' is not executable and couldn't change execution rights." @@ -1391,3 +1394,4 @@ def parse(self, fz_var_name: str, fz_var_index: int) -> None: for mapping in self.d3plot_mappings: mapping.i_integration_point = i_integration_point mapping.i_var_index = var_index +