def _read_these_files(src, files): result = {} for info in files: name, reader = info[:2] extra_args = info[2:] key = scrunch_filename(name) result[key] = reader(src, name, *extra_args) return result
def _read_all_files(src): return tuple( (scrunch_filename(name), read(src, name)) for name in os.listdir(src) if os.path.isfile(os.path.join(src, name)) )
def _output_name(name): return 'PythonMapper%s.Generated.cs' % name, scrunch_filename(name)
def _read_all_files(src): return tuple((scrunch_filename(name), read(src, name)) for name in os.listdir(src) if os.path.isfile(os.path.join(src, name)))