Browse Source

🔨 Rename (not copy) with board_build.rename

Scott Lahteine 3 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

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