darwin library error

This commit is contained in:
tomswinburne
2021-03-23 12:30:16 +01:00
parent 8af131424a
commit 8255fca58f

View File

@ -126,13 +126,16 @@ class lammps(object):
lib_ext = ".dll" lib_ext = ".dll"
modpath = winpath modpath = winpath
else: else:
"""
import platform import platform
if platform.system() == "Darwin": if platform.system() == "Darwin": # this flags an error on MacOSX
lib_ext = ".dylib" lib_ext = ".dylib"
elif platform.system() == "Windows": elif platform.system() == "Windows":
lib_ext = ".dll" lib_ext = ".dll"
else: else:
lib_ext = ".so" lib_ext = ".so"
"""
lib_ext = ".so"
if not self.lib: if not self.lib:
if name: if name: