Browse Source

🔨 Rename (not copy) with board_build.rename

Scott Lahteine 2 years ago
parent
commit
75d1f975a8
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      buildroot/share/PlatformIO/scripts/offset_and_rename.py

+ 1
- 2
buildroot/share/PlatformIO/scripts/offset_and_rename.py View File

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

Loading…
Cancel
Save