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='')
def lf(loc, fb=None): return read_file(loc, fallback=fb)