summaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/bluesock.py
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-27 14:52:48 +0800
committerTat-Chee Wan (USM)2011-04-27 14:52:48 +0800
commitb8a9597a5e1fba0b024110e2d42640481c41677f (patch)
treeecf117b957a06d199a0ad72bcc457a7c5ed67289 /nxt-python-fantom/nxt/bluesock.py
parentd70d274a441ce0ce68c8e0f4a4d214e624c8fd78 (diff)
wip pyfantom integration with nxt-python
Work In Progress: refactor nxt-python to add pyfantom support
Diffstat (limited to 'nxt-python-fantom/nxt/bluesock.py')
-rw-r--r--nxt-python-fantom/nxt/bluesock.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nxt-python-fantom/nxt/bluesock.py b/nxt-python-fantom/nxt/bluesock.py
index c57894d..b4a2739 100644
--- a/nxt-python-fantom/nxt/bluesock.py
+++ b/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