#NEWLINE# def command_run( args ) : #NEWLINE# #INDENT# os . environ . update ( _read_env ( args . app_root , args . env ) ) #NEWLINE# argv = args . argv #NEWLINE# if ( argv and ( cmd [ 0 ] == '--' ) ) : #NEWLINE# #INDENT# argv = argv [ 1 : ] #NEWLINE# #UNINDENT# if compat . ON_WINDOWS : #NEWLINE# #INDENT# cmd = argv #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmd = ' ' . join ( ( compat . shellquote ( arg ) for arg in argv ) ) #NEWLINE# #UNINDENT# p = Popen ( cmd , stdout = sys . stdout , stderr = sys . stderr , start_new_session = False ) #NEWLINE# signal . signal ( signal . SIGINT , signal . SIG_IGN ) #NEWLINE# p . wait ( ) #NEWLINE# sys . exit ( p . returncode )