diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-22 16:32:19 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-22 16:32:19 -0400 |
commit | 340b2356e8ab2e6525ef1a07d17155db2788ed50 (patch) | |
tree | 55eb3238039c399a38df9d8dd2c2c7ecaaa5b21a | |
parent | d7c122e14c9eaca96574dec0ea530ad7204965a9 (diff) | |
download | setuptools-scm-340b2356e8ab2e6525ef1a07d17155db2788ed50.tar.gz |
Use realpath during relpath to avoid cross-volume issues on Windows. Fixes #436.bugfix/436-realpath-everywhere
-rw-r--r-- | src/setuptools_scm/file_finder.py | 2 |
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 |