def check_output(command, cwd=None, shell=False, env=None, stdin=__sentinel__, stderr=__sentinel__, preexec_fn=None, use_texpath=True, show_window=False):
 (returncode, stdout, stderr) = execute_command(command, cwd=cwd, shell=shell, env=env, stdin=stdin, stderr=stderr, preexec_fn=preexec_fn, use_texpath=use_texpath, show_window=show_window)
 if returncode:
  e = CalledProcessError(returncode, command)
  e.output = stdout
  e.stderr = stderr
  raise e
 return stdout

def check_output ( command , cwd = None , shell = False , env = None , stdin = __sentinel__ , stderr = __sentinel__ , preexec_fn = None , use_texpath = True , show_window = False ) : ( returncode , stdout , stderr ) = execute_command ( command , cwd = cwd , shell = shell , env = env , stdin = stdin , stderr = stderr , preexec_fn = preexec_fn , use_texpath = use_texpath , show_window = show_window ) if returncode : e = CalledProcessError ( returncode , command ) e . output = stdout e . stderr = stderr raise e return stdout
run command with arguments and return its output as a byte string .