Skip to content

Commit dccfc81

Browse files
authored
use as posix (#5192)
1 parent e4c0185 commit dccfc81

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reflex/utils/pyi_generator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ def scan_all(
12641264
dict(
12651265
zip(
12661266
[
1267-
str(f.relative_to(pyi_hashes_file.parent))
1267+
f.relative_to(pyi_hashes_file.parent).as_posix()
12681268
for f in file_paths
12691269
],
12701270
hashes,
@@ -1291,9 +1291,10 @@ def scan_all(
12911291
for file_path, hashed_content in zip(
12921292
file_paths, hashes, strict=False
12931293
):
1294-
pyi_hashes[str(file_path.relative_to(pyi_hashes_parent))] = (
1295-
hashed_content
1296-
)
1294+
formatted_path = file_path.relative_to(
1295+
pyi_hashes_parent
1296+
).as_posix()
1297+
pyi_hashes[formatted_path] = hashed_content
12971298

12981299
pyi_hashes_file.write_text(
12991300
json.dumps(pyi_hashes, indent=2, sort_keys=True) + "\n"

0 commit comments

Comments
 (0)