Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use abspath() instead of resolve() in expand._assert_local()
4249da1 uses `pathlib.Path.resolve()` instead of `os.path.abspath()` to canonicalize path names. `resolve()` resolves symlinks, whereas `abspath()` does not. `resolve()` can also raise a `RuntimeError` if infinite loops are discovered while resolving the path. There is some concern that using `resolve()` would not be backwards compatible. This commit switches back to `abspath()` but still uses `Path.parents` to avoid the edge case. See PR #3595 for more details.
- Loading branch information