lolfrog/Marlin-2.0.x/buildroot/share/PlatformIO/scripts/random-bin.py

10 lines
237 B
Python
Raw Normal View History

2024-03-30 15:12:31 +01:00
#
# random-bin.py
# Set a unique firmware name based on current date and time
#
import pioutil
if pioutil.is_pio_build():
from datetime import datetime
Import("env")
env['PROGNAME'] = datetime.now().strftime("firmware-%Y%m%d-%H%M%S")