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