import os, sys my_path = os.path.dirname(__file__) my_path in sys.path or sys.path.append(my_path)