Modified GoodFET.py to accept DOS devices, which aren't expanded by Glob but which...
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 17 May 2010 21:00:15 +0000 (21:00 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 17 May 2010 21:00:15 +0000 (21:00 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@515 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFET.py

index d7875bc..2ee654e 100755 (executable)
@@ -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,