From d298d31111b8e81601512045ccc57fdacf8bd37a Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM Signature) Date: Fri, 15 Nov 2013 13:18:33 +0800 Subject: made compatlib path absolute wrt home directory --- pyfantom.py | 4 ++-- 1 file 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 -- cgit v1.2.3