1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-03 17:21:29 +00:00
MarlinFirmware/buildroot/share/PlatformIO/scripts/random-bin.py
Scott Lahteine 284cc8f4c0 🧑‍💻 Update Python indentation
2023-03-25 20:47:31 -05:00

10 lines
246 B
Python

#
# 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")