Commit 1b586cc6 authored by Adam Blank's avatar Adam Blank
Browse files

Update ports.py

parent a7886083
Showing with 15 additions and 2 deletions
+15 -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 sys
import time
......
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