From 2354bf341b3f46a7a23701c7f09de915b77ef7ff Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 17 May 2010 21:00:15 +0000 Subject: [PATCH] Modified GoodFET.py to accept DOS devices, which aren't expanded by Glob but which are valid for communication. Clients are now starting to work on Windows. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@515 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFET.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/GoodFET.py b/client/GoodFET.py index d7875bc..2ee654e 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -77,6 +77,8 @@ class GoodFET: glob_list = glob.glob(os.environ.get("GOODFET")); if len(glob_list) > 0: port = glob_list[0]; + else: + port = os.environ.get("GOODFET"); if port is None: glob_list = glob.glob("/dev/tty.usbserial*"); if len(glob_list) > 0: @@ -86,6 +88,7 @@ class GoodFET: if len(glob_list) > 0: port = glob_list[0]; + self.serialport = serial.Serial( port, #9600, -- 2.20.1