in setup.py [0:0]
def read_file(name):
filepath = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
name
)
data = open(filepath)
try:
return data.read()
except IOError:
print "could not read %r" % name
data.close()