import os, sys sys.path = ['/'.join(os.path.dirname(__file__).split(os.sep)[:-3])] + sys.path