#NEWLINE# def bootstrap( ) : #NEWLINE# #INDENT# import sys #NEWLINE# import inspect #NEWLINE# try : #NEWLINE# #INDENT# current_frame = inspect . currentframe ( ) #NEWLINE# previous_frame = current_frame . f_back #NEWLINE# name_of_previous_frame = previous_frame . f_globals [ '__name__' ] #NEWLINE# if ( name_of_previous_frame == '__main__' ) : #NEWLINE# #INDENT# import pybuilder.cli #NEWLINE# sys . exit ( pybuilder . cli . main ( * sys . argv [ 1 : ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# except BuildFailedException : #NEWLINE# #INDENT# sys . exit ( 1 )