import os
from mol.util import read_xyz

dirname = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(dirname, 'look_and_say.dat')

with open(filename, 'r') as handle:
	look_and_say = handle.read()

def get_molecule(filename):
	return read_xyz(os.path.join(dirname, filename + ".xyz"))

[((5, 11, 5, 52), 'os.path.join', 'os.path.join', ({(5, 24, 5, 31): 'dirname', (5, 33, 5, 51): '"""look_and_say.dat"""'}, {}), "(dirname, 'look_and_say.dat')", False, 'import os\n'), ((4, 26, 4, 51), 'os.path.abspath', 'os.path.abspath', ({(4, 42, 4, 50): '__file__'}, {}), '(__file__)', False, 'import os\n'), ((11, 17, 11, 57), 'os.path.join', 'os.path.join', ({(11, 30, 11, 37): 'dirname', (11, 39, 11, 56): "(filename + '.xyz')"}, {}), "(dirname, filename + '.xyz')", False, 'import os\n')]