def run(cmd, **kwargs):
 log('-', cmd)
 cmd = cmd.split()
 arg0 = cmd[0]
 if (not find_executable(arg0)):
  raise Exception((('Cannot find executable "%s";' % arg0) + ('you might try %s --depend' % argv[0])))
 return check_output(cmd, **kwargs)

def run ( cmd , ** kwargs ) : log ( '-' , cmd ) cmd = cmd . split ( ) arg0 = cmd [ 0 ] if ( not find_executable ( arg0 ) ) : raise Exception ( ( ( 'Cannot find executable "%s";' % arg0 ) + ( 'you might try %s --depend' % argv [ 0 ] ) ) ) return check_output ( cmd , ** kwargs )
run cmd as a child process and return exit code .