summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/setuptools_scm/file_finder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setuptools_scm/file_finder.py b/src/setuptools_scm/file_finder.py
index ce7cbad..77ec146 100644
--- a/src/setuptools_scm/file_finder.py
+++ b/src/setuptools_scm/file_finder.py
@@ -50,6 +50,6 @@ def scm_find_files(path, scm_files, scm_dirs):
# dirpath + filename with symlinks preserved
fullfilename = os.path.join(dirpath, filename)
if os.path.normcase(os.path.realpath(fullfilename)) in scm_files:
- res.append(os.path.join(path, os.path.relpath(fullfilename, path)))
+ res.append(os.path.join(path, os.path.relpath(fullfilename, realpath)))
seen.add(realdirpath)
return res