aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pyfantom.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyfantom.py b/pyfantom.py
index 2e66b1f..daf9b17 100644
--- a/pyfantom.py
+++ b/pyfantom.py
@@ -83,7 +83,8 @@ else:
if not MACOSX_BTENABLE:
print "Loading IOBluetooth-Compat Library (", compatlibpath, ")"
# Need to set DYLD_FORCE_FLAT_NAMESPACE in env
- compatdll = ctypes.cdll.LoadLibrary(compatlibpath)
+ #compatdll = ctypes.cdll.LoadLibrary(compatlibpath)
+ compatdll = ctypes.CDLL(compatlibpath, ctypes.RTLD_GLOBAL)
# RTLD_NOW is set by ctypes and can't be overridden
# http://hg.python.org/cpython/file/2.7/Modules/_ctypes/callproc.c#l1432