Skip to content

Commit 86c4e18

Browse files
committed
Use path.anchor instead of path.root for Windows compatibility
On *nix they give the same output, but on Windows path.anchor includes 'C:', which is needed for path.relative to work.
1 parent c52b3dd commit 86c4e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xbout/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def _expand_wildcards(path):
539539
"""Return list of filepaths matching wildcard"""
540540

541541
# Find first parent directory which does not contain a wildcard
542-
base_dir = Path(path.root)
542+
base_dir = Path(path.anchor)
543543

544544
# Find path relative to parent
545545
search_pattern = str(path.relative_to(base_dir))

0 commit comments

Comments
 (0)