parameters: (command, tries=1)
docstring: Run a command, possibly with multiple retries.
docstring_summary: Run a command, possibly with multiple retries.
docstring_tokens: Run a command possibly with multiple retries .
function: def RunCommand(command, tries=1):
    """Run a command, possibly with multiple retries."""
    for i in range(0, tries):
      print 'Running %s (try #%d)' % (str(command), i + 1)
      if subprocess.call(command, shell=True) == 0:
        return
      print 'Failed.'
    sys.exit(1)
function_tokens: def RunCommand ( command , tries = 1 ) : for i in range ( 0 , tries ) : print 'Running %s (try #%d)' % ( str ( command ) , i + 1 ) if subprocess . call ( command , shell = True ) == 0 : return print 'Failed.' sys . exit ( 1 )