#-----------------------------------------------------------------------------
#package-global instance of the notmuch library
try:
- nmlib = CDLL("libnotmuch.so.3")
+ from os import uname
+ if uname()[0] == 'Darwin':
+ nmlib = CDLL("libnotmuch.4.dylib")
+ else:
+ nmlib = CDLL("libnotmuch.so.4")
except:
raise ImportError("Could not find shared 'notmuch' library.")