From 06eaf2ba5d78a14e9a101db578999e6f01f76278 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Tue, 6 Aug 2024 19:48:05 +0800 Subject: [PATCH] Use sys.executable to refer to python. (#4402) Thanks to @mrekin for testing the build on Windows. The previous fix for this UF2 call did not work. sys.executable should fix it. --- 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 bfcee897a..0f099c09a 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"python3 ./bin/uf2conv.py $BUILD_DIR/firmware.hex -c -f 0xADA52840 -o $BUILD_DIR/firmware.uf2", + env.VerboseAction(f"{sys.executable} ./bin/uf2conv.py $BUILD_DIR/firmware.hex -c -f 0xADA52840 -o $BUILD_DIR/firmware.uf2", "Generating UF2 file")) Import("projenv")