aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUri Blumenthal <[email protected]>2015-08-14 16:13:17 -0400
committerUri Blumenthal <[email protected]>2015-08-14 16:13:17 -0400
commit51a7d9bffb7b0d409b624b8589d0011eca50917a (patch)
tree98c5322e5f2e8b03eb5a3454aa2e6a120eea2a25
parent3202d88d62f1d67c6227fb0757dde96f718183f2 (diff)
Restored Darwin compatibility
-rwxr-xr-xsrc/python/botan.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/botan.py b/src/python/botan.py
index abfc07fd7..53d95ca61 100755
--- a/src/python/botan.py
+++ b/src/python/botan.py
@@ -18,7 +18,10 @@ import base64
"""
Module initialization
"""
-botan = CDLL('libbotan-1.11.so')
+if sys.platform == 'darwin':
+ botan = CDLL('libbotan-1.11.dylib')
+else:
+ botan = CDLL('libbotan-1.11.so')
expected_api_rev = 20150210
botan_api_rev = botan.botan_ffi_api_version()