Skip to content

Commit 340b235

Browse files
committed
Use realpath during relpath to avoid cross-volume issues on Windows. Fixes #436.
1 parent d7c122e commit 340b235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setuptools_scm/file_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ def _link_not_in_scm(n):
5050
# dirpath + filename with symlinks preserved
5151
fullfilename = os.path.join(dirpath, filename)
5252
if os.path.normcase(os.path.realpath(fullfilename)) in scm_files:
53-
res.append(os.path.join(path, os.path.relpath(fullfilename, path)))
53+
res.append(os.path.join(path, os.path.relpath(fullfilename, realpath)))
5454
seen.add(realdirpath)
5555
return res

0 commit comments

Comments
 (0)