aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2012-02-08 08:12:10 +0800
committerTat-Chee Wan (USM)2012-02-08 08:12:10 +0800
commit9f74e6a12ed429859cfccb0b3e4c9ee6b0a375da (patch)
tree7abb45162aaba3d2ab3bb350b1a14f037cb5653d
parent2d73bfd4a555acbb40523a02fa2dc9043e5f0444 (diff)
do not use pyfantom when not available
(From Nicolas Schodet)
-rwxr-xr-xHost/nxt-gdb-server.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Host/nxt-gdb-server.py b/Host/nxt-gdb-server.py
index edd3143..197c27a 100755
--- a/Host/nxt-gdb-server.py
+++ b/Host/nxt-gdb-server.py
@@ -19,8 +19,10 @@ import nxt.locator
import socket
import optparse
import select
-#import usb
-import pyfantom
+try:
+ import pyfantom
+except ImportError:
+ import usb
import struct
import sys