micropython/tools
Damien George 5327cd1021 tools/pyboard.py: Use '/' exclusively when dealing with paths.
Currently, certain mpremote filesystem operations can fail on Windows due
to a mixing of '/' and '\' for path separators.  Eg if filesystem_command()
is called with a destination that ends in / then dest.endswith(os.path.sep)
will return False, which gives the wrong behaviour (it does end in a path
separator).

For similar reasons to 7e9a15966a, it's best
to use '/' everywhere in pyboard.py and mpremote, because the target device
understands only '/'.  mpremote already does this, so the remaining place
to fix it is in pyboard.y, to convert all incoming paths to use '/' instead
of '\'.

This effectively reverts 57fd66b80f which
tried to fix the problem in a different way.

See also related 1f84440538.

Signed-off-by: Damien George <damien@micropython.org>
2023-02-24 13:08:34 +11:00
..
autobuild tools/autobuild: Create .uf2 file for seeed_xiao_nrf52. 2022-12-19 16:16:12 +11:00
mpremote tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
.gitattributes
.gitignore
cc1
ci.sh tools/ci.sh: Add unix, stm32 and rp2 ports to code size check. 2023-02-20 11:26:23 +11:00
codeformat.py
codestats.sh
dfu.py
file2h.py
gen-changelog.sh
gen-cpydiff.py all: Keep msvc build output in build/ directories. 2022-12-13 17:18:53 +11:00
insert-usb-ids.py
makemanifest.py
manifestfile.py
metrics.py
mpy-tool.py tools/mpy-tool.py: Initialize line_info_top. 2023-02-01 13:17:22 +11:00
mpy_bin2res.py
mpy_cross_all.py
mpy_ld.py
pyboard.py tools/pyboard.py: Use '/' exclusively when dealing with paths. 2023-02-24 13:08:34 +11:00
pydfu.py
tinytest-codegen.py
uf2conv.py
uf2families.json
uncrustify.cfg
verifygitlog.py