🐛 Prefer os.replace, fix TFT_LVGL_UI build (#24001)
This commit is contained in:
committed by
Scott Lahteine
parent
18b17fc97d
commit
e9ea82e78d
@ -57,6 +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"))
|
||||
os.rename(target[0].path, firmware)
|
||||
os.replace(target[0].path, firmware)
|
||||
|
||||
marlin.add_post_action(rename_target)
|
||||
|
Reference in New Issue
Block a user