

@staticmethod
def read(fname, fail_silently=False):
    '\n        Read the content of the given file. The path is evaluated from the\n        directory containing this file.\n        '
    try:
        filepath = os.path.join(os.path.dirname(__file__), fname)
        with io.open(filepath, 'rt', encoding='utf8') as f:
            return f.read()
    except:
        if (not fail_silently):
            raise
        return ''

dataset/ETHPy150Open GaretJax/django-click/setup.py Setup.read/original