X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=5a7ab02de3c34678f6841d2ab0c43744bcfa7f40;hp=b335b4d975ab4bd19d3a80be9c2fcb3e148279cc;hb=cfe184370a5358f450773cc34f3c67ca2f20f391;hpb=c5f9be41f72eaddb734b78396ee4bf7bd6273439 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];