def read_file(filename):
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
    try:
        return open(filepath).read()
    except IOError:
        return ''
Read a file into a string.
dataset/ETHPy150Open pinax/symposion/setup.py/read_file