Marlin/buildroot/share/PlatformIO/scripts/random-bin.py

10 lines
194 B
Python
Raw Permalink Normal View History

2021-02-27 23:38:57 -05:00
#
# random-bin.py
# Set a unique firmware name based on current date and time
#
2020-07-25 23:57:00 -04:00
Import("env")
from datetime import datetime
env['PROGNAME'] = datetime.now().strftime("firmware-%Y%m%d-%H%M%S")