← index #6980PR #5408
Off-topic · high · value 4.402
QUERY · ISSUE

Pyboard.py doesn't keep file path with folders on windows

openby martinlombanaopened 2021-03-02updated 2021-03-12
tools

Hi, I am using the latest pyboard.py and, per the documentation, it will keep the path, providing that the folder exists also on destination, but it does not.

When executing this:

python pyboard.py --device COM4 -f cp srptools/context.py :

We get this, and the file is copied to the root.

cp srptools/context.py :context.py

Workaround: Specify the destination path manually.

python pyboard.py --device COM4 -f cp srptools/context.py :srptools/context.py

As a bonus, it would be nice if pyboard.py created the destination path if it doesn't exist.

Thanks!

CANDIDATE · PULL REQUEST

tools/pyboard.py: Support importing .mpy files directly.

mergedby dpgeorgeopened 2019-12-11updated 2019-12-19
tools

This allows importing .mpy files (including native ones) directly to a target board over a serial connection. So there's no need to copy the file to its filesystem to test it.

Eg:

$ mpy-cross foo.py
$ pyboard.py foo.mpy

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied