Skip to content

Commit 3799083

Browse files
committed
Changed ext match to glob pattern match
1 parent 4b0c927 commit 3799083

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,11 @@
3333
# print('recipes is', recipes)
3434
# data_files = recipes.items()
3535

36-
def recursively_include(results, directory, allowed_exts):
36+
def recursively_include(results, directory, patterns):
3737
for root, subfolders, files in walk(directory):
3838
for fn in files:
39-
if not any([glob.fnmatch.fnmatch(fn, pattern) for pattern in allowed_exts]):
39+
if not any([glob.fnmatch.fnmatch(fn, pattern) for pattern in patterns]):
4040
continue
41-
# ext = fn.split('.')[-1].lower()
42-
# if ext not in allowed_exts:
43-
# continue
4441
filename = join(root, fn)
4542
directory = root
4643
if directory not in results:

0 commit comments

Comments
 (0)