Skip to content

Commit 6aa1bfe

Browse files
committed
convert windows path delimiter to posix (#2149)
1 parent 969f589 commit 6aa1bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2_common/pico_lwip/tools/makefsdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def process_file(input_dir, file):
2424
content_type = "application/octet-stream"
2525

2626
# file name
27-
data = f"/{file.relative_to(input_dir)}\x00"
28-
comment = f"\"/{file.relative_to(input_dir)}\" ({len(data)} chars)"
27+
data = f"/{file.relative_to(input_dir).as_posix()}\x00"
28+
comment = f"\"/{file.relative_to(input_dir).as_posix()}\" ({len(data)} chars)"
2929
while(len(data) % PAYLOAD_ALIGNMENT != 0):
3030
data += "\x00"
3131
results.append({'data': bytes(data, "utf-8"), 'comment': comment});

0 commit comments

Comments
 (0)