def combine_path_lists(*path_seqs):
 results = []
 for path in combine_lists(*path_seqs):
  expanded = expand_path(path)
  paths = (sorted(glob.glob(expanded)) or [expanded])
  results.extend(paths)
 return results

def combine_path_lists ( * path_seqs ) : results = [ ] for path in combine_lists ( * path_seqs ) : expanded = expand_path ( path ) paths = ( sorted ( glob . glob ( expanded ) ) or [ expanded ] ) results . extend ( paths ) return results
concatenate the given sequences into a list .