Skip to content

Commit 60b0dc5

Browse files
committed
✨ Support globstar
1 parent b8f5698 commit 60b0dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinxcontrib/autofile/directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run(self) -> list[Node]:
5454
items = []
5555
for expr in self.content.data:
5656
expr = os.path.abspath(os.path.join(os.path.dirname(path), expr))
57-
for abspath in glob(expr):
57+
for abspath in glob(expr, recursive=True):
5858
_, _, module_path = abspath.rpartition("/" + prefix + "/")
5959
module_name = (
6060
module_path.replace("/__init__.py", "")

0 commit comments

Comments
 (0)