From 453b2d2fb105d1d9b33a20a5f66ed25616d9c6e9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 16 Jul 2020 21:28:40 -0700 Subject: [PATCH] Fix pathclass.glob actually only looking at cwd. In other news, don't ever trust anything I do. --- voussoirkit/pathclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index bd49084..4f0b8de 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -158,7 +158,8 @@ class Path: # If the user wants to glob names in a different path, they should # create a Pathclass for that directory first and do it normally. 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] return children