Skip to content

Commit

Permalink
convert windows path delimiter to posix (#2149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonethal committed Dec 27, 2024
1 parent 969f589 commit 6aa1bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rp2_common/pico_lwip/tools/makefsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def process_file(input_dir, file):
content_type = "application/octet-stream"

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

0 comments on commit 6aa1bfe

Please sign in to comment.