set glob recursive=True

This commit is contained in:
eine
2020-10-10 17:31:04 +02:00
parent 4faf2667a2
commit 642b99b75d
2 changed files with 17 additions and 4 deletions

2
tip.py
View File

@@ -25,7 +25,7 @@ if len(args) == 0:
raise(Exception("Glob patterns need to be provided as positional arguments or through envvar 'INPUT_FILES'!"))
for item in args:
items = glob(item)
items = [fname for fname in glob(item, recursive=True) if not Path(fname).is_dir()]
print("glob(%s)" % item, "->", items)
files = files + items