mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-11 00:37:48 -06:00
🐛 Fixes for ProUI, build rename (#26177)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
1d17c34e12
commit
f7d5188b2f
9 changed files with 61 additions and 39 deletions
|
@ -61,6 +61,9 @@ if pioutil.is_pio_build():
|
|||
def rename_target(source, target, env):
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
Path(target[0].path).replace(Path(target[0].dir.path, datetime.now().strftime(new_name.replace('{date}', '%Y%m%d').replace('{time}', '%H%M%S'))))
|
||||
from os import path
|
||||
_newpath = Path(target[0].dir.path, datetime.now().strftime(new_name.replace('{date}', '%Y%m%d').replace('{time}', '%H%M%S')))
|
||||
Path(target[0].path).replace(_newpath)
|
||||
env['PROGNAME'] = path.splitext(_newpath)[0]
|
||||
|
||||
marlin.add_post_action(rename_target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue