Skip to content

Commit 4691b9d

Browse files
committed
fix: convert path separators to match os.sep
this is a focused fix for the problem referenced in: pypa#445 (comment)
1 parent 63d45f7 commit 4691b9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flit/sdist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def find_nearest_pkg(rel_path):
9696

9797

9898
def include_path(p):
99+
p = str(Path(p))
99100
return not (p.startswith('dist' + os.sep)
100101
or (os.sep+'__pycache__' in p)
101102
or p.endswith('.pyc'))

0 commit comments

Comments
 (0)