Skip to content

Commit 1ef0643

Browse files
authored
Merge pull request #27 from mpvginde/bugfix/real_paths
[draft] bugfix: fully resolve mount points
2 parents c5267a5 + 5814826 commit 1ef0643

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Keep it human-readable, your future self will thank you!
1616
- Fix `__version__` import in init
1717

1818
### Changed
19-
19+
- Fix: resolve mounted filesystems in provenance
2020
- Fix pre-commit regex
2121
- ci: extend python versions [#23] (https://github.com/ecmwf/anemoi-utils/pull/23)
2222
- Update copyright notice

Diff for: src/anemoi/utils/provenance.py

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def _module_versions(full):
124124

125125
roots = {}
126126
for name, path in sysconfig.get_paths().items():
127+
path = os.path.realpath(path)
127128
if path not in roots:
128129
roots[path] = name
129130

0 commit comments

Comments
 (0)