1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

let flashtool auto install pyserial

This commit is contained in:
wellenvogel
2021-12-25 18:51:50 +01:00
parent 754f8fe799
commit d9da394034

View File

@@ -1,4 +1,14 @@
#! /usr/bin/env python3
import subprocess
import sys
try:
import serial
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", 'pyserial'])
finally:
import serial
import tkinter as tk
from tkinter import ttk
import tkinter.font as tkFont