8000 tools/pyboard.py: Import serial.tools.list_ports. · micropython/micropython@0264465 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0264465

Browse files
committed
tools/pyboard.py: Import serial.tools.list_ports.
This import is needed by newer versions of pyserial. Signed-off-by: Damien George <damien@micropython.org>
1 parent f1c6cb7 commit 0264465

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/pyboard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def __init__(
277277
self.serial = TelnetToSerial(device, user, password, read_timeout=10)
278278
else:
279279
import serial
280+
import serial.tools.list_ports
280281

281282
# Set options, and exclusive if pyserial supports it
282283
serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1}

0 commit comments

Comments
 (0)
0