Skip to content

Commit 5d60dbd

Browse files
committed
Restore fallback when FastPath.root is empty. Fixes #353.
1 parent 83c7dd2 commit 5d60dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def joinpath(self, child):
447447

448448
def children(self):
449449
with suppress(Exception):
450-
return os.listdir(self.root or '')
450+
return os.listdir(self.root or '.')
451451
with suppress(Exception):
452452
return self.zip_children()
453453
return []

0 commit comments

Comments
 (0)