aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-27 15:23:24 +0800
committerTat-Chee Wan (USM)2011-04-27 15:23:24 +0800
commitefa35bbf85ba1bfa37b34bc35d4fa5e8cf3208f6 (patch)
treed6f841d2ba30c5d4c77fe669152b10aaa5c95442 /AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py
parent96232341cd6b5f788ba1faf9b3347c286274a89c (diff)
parent0bf5f4efbea18e4402814f8cacd79967a4257e50 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py')
-rw-r--r--AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py b/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py
index c57894d..b4a2739 100644
--- a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py
+++ b/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/bluesock.py
@@ -15,7 +15,11 @@
try:
import bluetooth
except ImportError:
- import lightblueglue as bluetooth
+ try:
+ import lightblueglue as bluetooth
+ except ImportError:
+ import pyfantom as bluetooth
+
import os
from .brick import Brick