#NEWLINE# def _IsProcessRunnable( name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# with open ( os . devnull , 'w' ) as devnull : #NEWLINE# #INDENT# found = ( subprocess . call ( [ '/usr/bin/which' , name ] , stdout = found , stderr = devnull ) == 0 ) #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# except OSError : #NEWLINE# #INDENT# return False