The new py2exe build should be published ASAP.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@607
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
from scanwin32 import winScan;
scan=winScan();
for order,comport,desc,hwid in sorted(scan.comports()):
- if hwid.index('FTDI')==0:
- port=comport;
- #print "Using FTDI port %s" % port
-
+ try:
+ if hwid.index('FTDI')==0:
+ port=comport;
+ #print "Using FTDI port %s" % port
+ except:
+ #Do nothing.
+ a=1;
self.serialport = serial.Serial(
port,
from scanwin32 import winScan;
scan=winScan();
for order,comport,desc,hwid in sorted(scan.comports()):
- if hwid.index('FTDI')==0:
- comPort=comport;
- #print "Using FTDI port %s" % port
-
-
+ try:
+ if hwid.index('FTDI')==0:
+ comPort=comport;
+ #print "Using FTDI port %s" % port
+ except:
+ #Do nothing.
+ a=1;
sys.stderr.write("MSP430 Bootstrap Loader Version: %s\n" % VERSION)
try: