parameters: (cmd, cwd=None)
return_statement: return process.returncode
docstring: Runs the given command and returns the exit code.
  
    Args:
      cmd: list of command arguments.
      cwd: working directory to execute the command, or None if the current
           working directory should be used.
  
    Returns:
      The exit code of the command.
docstring_summary: Runs the given command and returns the exit code.
docstring_tokens: Runs the given command and returns the exit code .
function: def RunCommand(cmd, cwd=None):
    """Runs the given command and returns the exit code.
  
    Args:
      cmd: list of command arguments.
      cwd: working directory to execute the command, or None if the current
           working directory should be used.
  
    Returns:
      The exit code of the command.
    """
    process = subprocess.Popen(cmd, cwd=cwd)
    process.wait()
    return process.returncode
function_tokens: def RunCommand ( cmd , cwd = None ) : process = subprocess . Popen ( cmd , cwd = cwd ) process . wait ( ) return process . returncode