I prefer sys.path.insert(0, os.path.dirname(__file__)) it make it more explicit.