From: travisutk Date: Thu, 3 Sep 2009 05:41:49 +0000 (+0000) Subject: Fixed client error when GOODFET was undefined. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=cfe184370a5358f450773cc34f3c67ca2f20f391;ds=sidebyside Fixed client error when GOODFET was undefined. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@110 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index b335b4d..5a7ab02 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -17,7 +17,7 @@ class GoodFET: def serInit(self, port=None): """Open the serial port""" - if port is None: + if port is None and os.environ.get("GOODFET")!=None: glob_list = glob.glob(os.environ.get("GOODFET")); if len(glob_list) > 0: port = glob_list[0];