import sys import os BASEPATH = os.path.dirname(__file__) sys.path.insert(0, BASEPATH)