Skip to content

Commit ac0df0d

Browse files
committed
Wrap 'subdir/line' in PosixPath to ensure the output uses posix path separators. Ref python/cpython#103661.
1 parent 4119720 commit ac0df0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

importlib_metadata/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,10 @@ def _read_files_egginfo_installed(self):
538538
return
539539

540540
ret = [
541-
str((subdir / line).resolve().relative_to(self.locate_file('').resolve()))
541+
(subdir / line)
542+
.resolve()
543+
.relative_to(self.locate_file('').resolve())
544+
.as_posix()
542545
for line in text.splitlines()
543546
]
544547
return map('"{}"'.format, ret)

0 commit comments

Comments
 (0)