mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-22 02:07:30 +00:00
fc2020c6ec
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
10 lines
237 B
Python
10 lines
237 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")
|