Skip to content

Commit

Permalink
feat: add recursive glob option (#731)
Browse files Browse the repository at this point in the history
Sure that will be useful! Thank you @b4nst
  • Loading branch information
b4nst authored Feb 4, 2021
1 parent 518701e commit 4e98489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def single_line(msg, *args, **kwargs):
for pattern in args.notebooks:
if "*" in pattern or "?" in pattern:
# Exclude the .jupytext.py configuration file
notebooks.extend(glob.glob(pattern))
notebooks.extend(glob.glob(pattern, recursive=True))
else:
notebooks.append(pattern)

Expand Down

0 comments on commit 4e98489

Please sign in to comment.