From: travisutk Date: Sun, 24 Apr 2011 16:24:41 +0000 (+0000) Subject: Allows for explicit port naming on NT. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=5080c116b2f2b94172c597ef4f07e3f369665c61 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 --- 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()):