mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
windows compat - use anchor not root
This commit is contained in:
parent
ea2d1238ed
commit
960d4f70a1
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ def _relativize_paths(
|
|||
# or that are at the filesystem root (eg like /data)
|
||||
if (
|
||||
not path.exists()
|
||||
or (resolved.is_dir() and str(resolved.parent) == resolved.root)
|
||||
or relative_to.root != resolved.root
|
||||
or (resolved.is_dir() and str(resolved.parent) == resolved.anchor)
|
||||
or relative_to.anchor != resolved.anchor
|
||||
):
|
||||
return v
|
||||
return str(relative_path(path, relative_to))
|
||||
|
|
Loading…
Reference in a new issue