import sys, os testdir = os.path.dirname(__file__) sys.path.insert(0, os.path.join(testdir, '../../'))