Commit afdb8632 authored by Adam Blank's avatar Adam Blank
Browse files

Update ports.py

parent 6f76dd6c
No related merge requests found
Showing with 11 additions and 2 deletions
+11 -2
import serial
import serial.tools
import subprocess
import sys
try:
import serial
import serial.tools
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", 'pyserial'])
finally:
import serial
import serial.tools
import time
import serial.tools.list_ports
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment