let flashtool auto install pyserial

This commit is contained in:
wellenvogel 2021-12-25 18:51:50 +01:00
parent 754f8fe799
commit d9da394034
1 changed files with 10 additions and 0 deletions

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