(command, **kwargs)
Run a command and die if it fails.

  Args:
    kwargs: extra arguments to subprocess.Popen
Run a command and die if it fails.
Run a command and die if it fails .
def run_command(command, **kwargs):
  """Run a command and die if it fails.

  Args:
    kwargs: extra arguments to subprocess.Popen
  """
  p = subprocess.Popen(
      command,
      shell=False, **kwargs)
  ret_code = p.wait()
  if ret_code != 0:
    raise Exception(
        'Problem running "%s", returned code: %s' % (
        " ".join(command), ret_code))
def run_command ( command , * * kwargs ) : p = subprocess . Popen ( command , shell = False , * * kwargs ) ret_code = p . wait ( ) if ret_code != 0 : raise Exception ( 'Problem running "%s", returned code: %s' % ( " " . join ( command ) , ret_code ) )