def _fix_sys_path(script_path):
    "Add the script's folder to the sys path.\n\n    Python normally does this automatically, but since we exec the script\n    ourselves we need to do it instead.\n    "
    sys.path.insert(0, os.path.dirname(script_path))
Add the script's folder to the sys path.

Python normally does this automatically, but since we exec the script
ourselves we need to do it instead.
def _fix_sys_path(script_path):
    "Add the script's folder to the sys path.\n\n    Python normally does this automatically, but since we exec the script\n    ourselves we need to do it instead.\n    "
    sys.path.insert(0, os.path.dirname(script_path))