示例#1
0
def local_file(name):
    '''
        :param name: filename to read relative from current directory
        :returns str: content of ``name`` or empty string on failure
    '''
    return read_file(path.join(
        path.dirname(path.abspath(__file__)), name
    ), fallback='')
示例#2
0
def lf(loc, fb=None):
    return read_file(loc, fallback=fb)