This commit is contained in:
Campbell Barton
2015-02-13 16:09:24 +11:00
parent 1ae2098a6e
commit 616eb6818f
10 changed files with 24 additions and 18 deletions

View File

@@ -78,7 +78,9 @@ def batch_import(operator="",
path = os.path.abspath(path)
match_upper = match.upper()
pattern_match = lambda a: fnmatch.fnmatchcase(a.upper(), match_upper)
def pattern_match(a):
return fnmatch.fnmatchcase(a.upper(), match_upper)
def file_generator(path):
for dirpath, dirnames, filenames in os.walk(path):