0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-19 08:08:25 +00:00

🔨 Rename (not copy) with board_build.rename

This commit is contained in:
Scott Lahteine 2022-01-09 03:48:17 -06:00
parent 6ce0c682bb
commit 75d1f975a8

View file

@ -57,7 +57,6 @@ if pioutil.is_pio_build():
def rename_target(source, target, env):
firmware = os.path.join(target[0].dir.path, board.get("build.rename"))
import shutil
shutil.copy(target[0].path, firmware)
os.rename(target[0].path, firmware)
marlin.add_post_action(rename_target)