Fix pathclass.glob actually only looking at cwd.
In other news, don't ever trust anything I do.
This commit is contained in:
parent
ff9895a390
commit
453b2d2fb1
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ class Path:
|
||||||
# If the user wants to glob names in a different path, they should
|
# If the user wants to glob names in a different path, they should
|
||||||
# create a Pathclass for that directory first and do it normally.
|
# create a Pathclass for that directory first and do it normally.
|
||||||
raise TypeError('glob pattern should not have path separators')
|
raise TypeError('glob pattern should not have path separators')
|
||||||
children = winglob.glob(pattern)
|
pattern = self.with_child(pattern)
|
||||||
|
children = winglob.glob(pattern.absolute_path)
|
||||||
children = [self.with_child(child) for child in children]
|
children = [self.with_child(child) for child in children]
|
||||||
return children
|
return children
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue