3d-stuff/sparky/Marlin-bugfix-2.0.x/buildroot/share/PlatformIO/scripts/random-bin.py

10 lines
194 B
Python
Raw Normal View History

2021-11-11 17:37:34 +01:00
#
# random-bin.py
# Set a unique firmware name based on current date and time
#
Import("env")
from datetime import datetime
env['PROGNAME'] = datetime.now().strftime("firmware-%Y%m%d-%H%M%S")