def _run_file(file_path, globals_, script_dir=_SCRIPT_DIR):
 script_name = os.path.basename(file_path)
 sys.path = (_SYS_PATH_ADDITIONS[script_name] + sys.path)
 if ('google' in sys.modules):
  del sys.modules['google']
 script_dir = _SCRIPT_TO_DIR.get(script_name, script_dir)
 script_name = _BOOTSTAP_NAME_TO_REAL_NAME.get(script_name, script_name)
 script_path = os.path.join(script_dir, script_name)
 execfile(script_path, globals_)
 exit(0)

def _run_file ( file_path , globals_ , script_dir = _SCRIPT_DIR ) : script_name = os . path . basename ( file_path ) sys . path = ( _SYS_PATH_ADDITIONS [ script_name ] + sys . path ) if ( 'google' in sys . modules ) : del sys . modules [ 'google' ] script_dir = _SCRIPT_TO_DIR . get ( script_name , script_dir ) script_name = _BOOTSTAP_NAME_TO_REAL_NAME . get ( script_name , script_name ) script_path = os . path . join ( script_dir , script_name ) execfile ( script_path , globals_ ) exit ( 0 )
execute the file at the specified path with the passed-in globals .