aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTat-Chee Wan (USM Signature)2013-11-15 13:18:33 +0800
committerTat-Chee Wan (USM Signature)2013-11-15 13:18:33 +0800
commitd298d31111b8e81601512045ccc57fdacf8bd37a (patch)
tree8809c261a1ab9107594782dea7066b3d177735e4
parent89de16e2499d94ceed70a480a093243a3e9f6853 (diff)
made compatlib path absolute wrt home directory
-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