From 5080c116b2f2b94172c597ef4f07e3f369665c61 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sun, 24 Apr 2011 16:24:41 +0000 Subject: [PATCH 1/1] Allows for explicit port naming on NT. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1007 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFET.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()): -- 2.20.1