diff --git a/pio/rename-firmware.py b/pio/rename-firmware.py deleted file mode 100644 index 49f86d79e..000000000 --- a/pio/rename-firmware.py +++ /dev/null @@ -1,12 +0,0 @@ -Import('env') -import os - -def obj_ren_after_bin(source, target, env): - # print("Rename firmware.bin") - base_dir = os.path.dirname(str(target[0])) - new_file = "{}{}{}.bin".format(base_dir, os.path.sep, str(target[0]).split(os.path.sep)[1]) - if os.path.isfile(new_file): - os.remove(new_file) - os.rename(str(target[0]), new_file) - -env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [obj_ren_after_bin])