Inform users to install pyserial

philcrump-phil-add-ntp
Marek Ventur 2018-08-25 22:43:23 +01:00
parent d640329911
commit 0f168e6053
1 changed files with 7 additions and 1 deletions

View File

@ -49,8 +49,14 @@ Common parameters
-s --storage : path to flash storage
"""
import sys
try:
import serial
except Exception as e:
print("Please install pyserial first: https://pyserial.readthedocs.io/en/latest/pyserial.html")
sys.exit(1)
import sys, glob
import glob
import sync, firmware_update, wifi, pyboard_util
from resources import *