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