Skip to content

Commit 5fd0124

Browse files
committed
Use full path to upload tools // Issue #16
1 parent 39b2ae9 commit 5fd0124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ def generate_uf2(target, source, env):
154154
]
155155
elif upload_protocol == "picotool":
156156
env.Replace(
157-
UPLOADER="rp2040load",
157+
UPLOADER=join(platform.get_package_dir("tool-rp2040tools") or "", "rp2040load"),
158158
UPLOADERFLAGS=["-v", "-D"],
159-
UPLOADCMD="$UPLOADER $UPLOADERFLAGS $SOURCES"
159+
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
160160
)
161161

162162
upload_actions = [

0 commit comments

Comments
 (0)