#NEWLINE# def runProcess( cmd ) : #NEWLINE# #INDENT# p = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) #NEWLINE# while True : #NEWLINE# #INDENT# retcode = p . poll ( ) #NEWLINE# line = p . stdout . readline ( ) #NEWLINE# ( yield line . decode ( 'utf-8' ) ) #NEWLINE# if ( p is not None ) : #NEWLINE# #INDENT# break