From e582c0d4e5eec1b5e22954e3249719e69827deb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Tue, 12 Feb 2019 08:20:54 +0100 Subject: [PATCH] Update lammps.py --- python/lammps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lammps.py b/python/lammps.py index c5c7dca33d..9b3790f2db 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -85,7 +85,7 @@ class lammps(object): # fall back to loading with a relative path, # typically requires LD_LIBRARY_PATH to be set appropriately - if 'liblammps.dylib' in os.listdir(modpath): + if any([f.startswith('liblammps') and f.endswith('.dylib') for f in os.listdir(modpath)]): lib_ext = ".dylib" else: lib_ext = ".so"