Skip to content

Commit

Permalink
fix: use posix path as the relpath
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Feb 28, 2023
1 parent 861841a commit d9218f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdm/backend/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,4 @@ def _iter_files_in_directory(self, path: str) -> Iterable[tuple[str, Path]]:
for root, _, files in os.walk(path):
relroot = os.path.relpath(root, os.path.dirname(path))
for file in files:
yield (os.path.join(relroot, file), Path(root) / file)
yield (Path(relroot, file).as_posix(), Path(root) / file)

0 comments on commit d9218f2

Please sign in to comment.