#NEWLINE# def run_script( script_name ) : #NEWLINE# #INDENT# script_path = get_scripts ( ) . get ( script_name ) #NEWLINE# if ( not script_path ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# sys . path . append ( os . path . dirname ( script_path ) ) #NEWLINE# module_name = os . path . split ( script_path ) [ ( - 1 ) ] . replace ( '.py' , '' ) #NEWLINE# __import__ ( module_name ) #NEWLINE# del sys . modules [ module_name ] #NEWLINE# sys . path = sys . path [ : ( - 1 ) ] #NEWLINE# return True