What is the cross-platform method of enumerating serial ports in Python (including virtual ports)?
This is what I’ve been using. It’s a mashup of the methods I posted above. I’d still like to see better solutions, though. # A function that tries to list serial ports on most common platforms def list_serial_ports(): system_name = platform.system() if system_name == “Windows”: # Scan for available ports. available = [] for i … Read more