Files
Marlin/buildroot/share/PlatformIO/scripts/random-bin.py
Scott Lahteine f54cafdc76 🧑‍💻 Use spaces indent for Python
2024-01-02 11:19:57 +01: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")