Codebase list python-astor / cme/main setuputils.py
cme/main

Tree @cme/main (Download .tar.gz)

setuputils.py @cme/mainraw · history · blame

1
2
3
4
5
6
7
8
9
import codecs
import os.path


def read(*parts):
    file_path = os.path.join(os.path.dirname(__file__), *parts)
    with codecs.open(file_path, 'r') as fobj:
        content = fobj.read()
    return content