def comports():
        devices = glob.glob('/dev/dty*')
        return [list_ports_common.ListPortInfo(d) for d in devices]
scan for available ports. return a list of device names.
dataset/ETHPy150Open pyserial/pyserial/serial/tools/list_ports_posix.py/comports