Skip to content

Commit e8b7925

Browse files
committed
perf(tool): ensure to use POSIX path on all platforms
1 parent 6e4767d commit e8b7925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_resources_json(resources_dir: Path) -> dict:
2525
if file.is_file():
2626
relative_path = file.relative_to(images_dir)
2727
hash = calculate_sha256(file)
28-
images.append({"file": str(relative_path), "hash": hash})
28+
images.append({"file": str(relative_path.as_posix()), "hash": hash})
2929
images.sort(key=lambda i: i["file"])
3030

3131
return {"fonts": fonts, "images": images}

0 commit comments

Comments
 (0)