mirror of
https://github.com/esphome/esphome-flasher.git
synced 2024-11-16 10:55:31 +01:00
21 lines
456 B
Python
21 lines
456 B
Python
|
|
||
|
"""
|
||
|
This is a way to save the startup time when running img2py on lots of
|
||
|
files...
|
||
|
"""
|
||
|
|
||
|
from wx.tools import img2py
|
||
|
|
||
|
command_lines = [
|
||
|
"-F -n Exit images/exit.png images.py",
|
||
|
"-a -F -n Reload images/reload.png images.py",
|
||
|
"-a -F -n Splash images/splash.png images.py",
|
||
|
"-a -F -i -n Icon images/icon-256.png images.py",
|
||
|
]
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
for line in command_lines:
|
||
|
args = line.split()
|
||
|
img2py.main(args)
|
||
|
|