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) + 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 +