예제 #1
0
파일: io.py 프로젝트: netcharm/ironclad
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
파일: io.py 프로젝트: nathanwblair/ironclad
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
파일: io.py 프로젝트: netcharm/ironclad
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
파일: io.py 프로젝트: nathanwblair/ironclad
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)))