From 5fd0124b33f8a49dfde2adcd3135e335feb32fa1 Mon Sep 17 00:00:00 2001 From: valeros Date: Thu, 19 Aug 2021 12:03:16 +0300 Subject: [PATCH] Use full path to upload tools // Issue #16 --- builder/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/main.py b/builder/main.py index 6ac6086..d34c935 100644 --- a/builder/main.py +++ b/builder/main.py @@ -154,9 +154,9 @@ if upload_protocol == "mbed": ] elif upload_protocol == "picotool": env.Replace( - UPLOADER="rp2040load", + UPLOADER=join(platform.get_package_dir("tool-rp2040tools") or "", "rp2040load"), UPLOADERFLAGS=["-v", "-D"], - UPLOADCMD="$UPLOADER $UPLOADERFLAGS $SOURCES" + UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES' ) upload_actions = [