Skip to content

Commit 1a235df

Browse files
allow for relative paths as input
1 parent 4d68821 commit 1a235df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysonde/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def expand_pathglobs(pathparts, basepaths=None):
183183
--> /tmp/a2/b2
184184
"""
185185
if isinstance(pathparts, str) or isinstance(pathparts, Path):
186-
pathparts = Path(pathparts).parts
186+
pathparts = Path(pathparts).absolute().parts
187187

188188
if basepaths is None:
189189
return expand_pathglobs(pathparts[1:], [Path(pathparts[0])])

0 commit comments

Comments
 (0)