Пример #1
0
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
Пример #2
0
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
Пример #3
0
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))
    )
Пример #4
0
def _output_name(name):
    return 'PythonMapper%s.Generated.cs' % name, scrunch_filename(name)
Пример #5
0
def _output_name(name):
    return 'PythonMapper%s.Generated.cs' % name, scrunch_filename(name)
Пример #6
0
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)))