Skip to content

Commit

Permalink
do not fail on dynamic libraries miss
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 5, 2023
1 parent f0c75f1 commit 7086217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/geant4_python_application/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def _parse_geant4_version(version: str) -> (int, int, int):
f"Error comparing Geant4 version '{_geant4_version}' with '{_minimum_geant4_version}': {e}"
)

load_libs()
try:
load_libs()
except Exception as e:
print(f"Could not load Geant4 dynamic libraries: {e}")

# environment variable GEANT4_DATA_DIR is a recent addition to Geant4
if "GEANT4_DATA_DIR" not in os.environ:
Expand Down

0 comments on commit 7086217

Please sign in to comment.