Skip to content

Commit 0056ff8

Browse files
committed
handle empty libs
1 parent f405a9f commit 0056ff8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/geant4_python_application/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
_geant4_libs_dir = os.path.join(_geant4_prefix, "lib")
3030

3131
for lib in _geant4_libs.split()[1:]:
32+
if not lib.startswith("-l"):
33+
continue
3234
# lib has format -l<libname>, transform to file name which is lib<libname>
3335
library_absolute_path = os.path.join(_geant4_libs_dir, "lib" + lib[2:])
3436
if sys.platform == "darwin":

0 commit comments

Comments
 (0)