Browse Source

🔨 Rename (not copy) with board_build.rename

vanilla_fb_2.0.x
Scott Lahteine 3 years ago
parent
commit
035f9b8e13
  1. 3
      buildroot/share/PlatformIO/scripts/offset_and_rename.py

3
buildroot/share/PlatformIO/scripts/offset_and_rename.py

@ -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)

Loading…
Cancel
Save