@yield_once
def icollect(file_paths, ignored_globs=None):
 if isinstance(file_paths, str):
  file_paths = [file_paths]
 for file_path in file_paths:
  for match in iglob(file_path):
   if ((not ignored_globs) or (not fnmatch(match, ignored_globs))):
    (yield (match, file_path))

@ yield_once def icollect ( file_paths , ignored_globs = None ) : if isinstance ( file_paths , str ) : file_paths = [ file_paths ] for file_path in file_paths : for match in iglob ( file_path ) : if ( ( not ignored_globs ) or ( not fnmatch ( match , ignored_globs ) ) ) : ( yield ( match , file_path ) )
evaluate globs in file paths and return all matching files .