Source

stackoverflow / 8628495 / build / lib / mycode.py

Full commit
1
2
3
4
5
6
7
import os

here = os.path.dirname(__file__)

def my_func():
	with open(os.path.join(here, 'data/file1.dat')) as f:
		print(next(f))