summaryrefslogtreecommitdiff
path: root/Host
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-08 12:56:30 +0800
committerTat-Chee Wan (USM)2011-06-08 12:56:30 +0800
commit9ac83aa9bc7071a9dc997b841f1d325e5949da82 (patch)
tree55bdaec00f4cc991b033ccccd633fb1dc09af827 /Host
parent174f4827d5f3f0ad51435efa3c13304c5b47924d (diff)
update python paths for nxt-python with fantom support
Diffstat (limited to 'Host')
-rwxr-xr-xHost/nxt-gdb-server.py4
-rwxr-xr-xHost/pyenv-nxt-gdb-server2
2 files changed, 3 insertions, 3 deletions
diff --git a/Host/nxt-gdb-server.py b/Host/nxt-gdb-server.py
index a4ea2ad..1a87793 100755
--- a/Host/nxt-gdb-server.py
+++ b/Host/nxt-gdb-server.py
@@ -20,7 +20,7 @@ import socket
import optparse
import select
#import usb
-import nxt.pyfantom
+import pyfantom
import struct
CTRLC = chr(3)
@@ -134,7 +134,7 @@ class NXTGDBServer:
s.bind (('', self.port))
s.listen (1)
# Open connection to the NXT brick.
- brick = nxt.locator.find_one_brick ()
+ brick = nxt.locator.find_one_brick (method=nxt.Method(usb=False, bluetooth=False, fantomusb=True, fantombt=False))
brick.sock.debug = DEBUG
print "Waiting for GDB connection on port %s..." % self.port
while True:
diff --git a/Host/pyenv-nxt-gdb-server b/Host/pyenv-nxt-gdb-server
index 12dac80..b98c2d8 100755
--- a/Host/pyenv-nxt-gdb-server
+++ b/Host/pyenv-nxt-gdb-server
@@ -1,3 +1,3 @@
#!/bin/sh
-export PYTHONPATH=~/gitrepo/armdebug/nxt-python-fantom
+export PYTHONPATH=~/svnrepo/nxt-python:~/gitrepo/pyfantom
arch -i386 /usr/bin/python2.6 ~/gitrepo/armdebug/Host/nxt-gdb-server.py