Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lasso/dyna/d3plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -9722,3 +9722,4 @@ def enable_logger(enable: bool):
LOGGER.setLevel(logging.DEBUG)
else:
LOGGER.setLevel(logging.NOTSET)

4 changes: 4 additions & 0 deletions src/lasso/femzip/femzip_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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