aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyfantom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyfantom.py')
-rw-r--r--pyfantom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfantom.py b/pyfantom.py
index 3570479..2e66b1f 100644
--- a/pyfantom.py
+++ b/pyfantom.py
@@ -48,7 +48,7 @@ if DEBUG:
print "Running on %s Platform (Rel. %s)" % (platform_type, platform_rel)
if platform_type == 'Darwin':
- import sys
+ import sys, os
if sys.maxsize > 2**32:
raise RuntimeError("fantom drivers not available in 64 bit mode.\n"
@@ -62,7 +62,7 @@ if platform_type == 'Darwin':
if platform_rel >= MACOSX_BTMODVER:
print " Bluetooth Stack not supported (Rel >= %s)" % MACOSX_BTMODVER
MACOSX_BTENABLE = False
- compatlibpath = './IOBluetooth-Compat.dylib'
+ compatlibpath = '%s/Library/IOBluetooth-Compat.dylib' % os.getenv("HOME")
from AppKit import NSAutoreleasePool, NSApplication