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