X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=0d32cca97be02a86b4d2d4f7bc2946d320e8a8b4;hp=b37b319f58c5b269c396e55f7edf882009e2aaf2;hb=5080c116b2f2b94172c597ef4f07e3f369665c61;hpb=07318f32608e9dd4a6cfa0c47b0b03c18cc3c50e diff --git a/client/GoodFET.py b/client/GoodFET.py index b37b319..0d32cca 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -94,7 +94,7 @@ class GoodFET: glob_list = glob.glob("/dev/ttyU0"); if len(glob_list) > 0: port = glob_list[0]; - if os.name=='nt': + if port is None and os.name=='nt': from scanwin32 import winScan; scan=winScan(); for order,comport,desc,hwid in sorted(scan.comports()):