import sys import os #add self to path sys.path.append(".") os.chdir(os.path.dirname(os.path.abspath(__file__)))