Skip grep search for serial ports on Windows machines

This commit is contained in:
Ivan Kravets
2016-06-01 20:26:10 +03:00
parent c74a2b4529
commit 250b39bcc8

View File

@ -315,7 +315,7 @@ def get_serialports(use_grep=False):
result.append({"port": p, "description": d, "hwid": h})
# fix for PySerial
if not result:
if not result and "Windows" != system():
result = _grep_serial_ports()
return result