From 1f458d6397f259b8c305d6254a31e162da96761b Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Tue, 6 Aug 2024 08:25:47 +0800 Subject: [PATCH] Make UF2 build command windows-friendly (#4399) As reported by @mrekin, the previous changes to the platformio custom build script may not work on windows. Change to use python3 instead of a call to /usr/bin/env python3. --- bin/platformio-custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/platformio-custom.py b/bin/platformio-custom.py index b22d76098..bfcee897a 100644 --- a/bin/platformio-custom.py +++ b/bin/platformio-custom.py @@ -81,7 +81,7 @@ if platform.name == "espressif32": if platform.name == "nordicnrf52": env.AddPostAction("$BUILD_DIR/${PROGNAME}.hex", - env.VerboseAction(f"/usr/bin/env python3 ./bin/uf2conv.py $BUILD_DIR/firmware.hex -c -f 0xADA52840 -o $BUILD_DIR/firmware.uf2", + env.VerboseAction(f"python3 ./bin/uf2conv.py $BUILD_DIR/firmware.hex -c -f 0xADA52840 -o $BUILD_DIR/firmware.uf2", "Generating UF2 file")) Import("projenv")