Class: QgsRunProcess

Executes an external program/script.

It can optionally capture the standard output and error from the process and displays them in a dialog box.

On some platforms (e.g. iOS) , the process execution is skipped

Class Hierarchy

Inheritance diagram of qgis.core.QgsRunProcess

Base classes

QObject

Methods

dialogGone

processError

processExit

stderrAvailable

stdoutAvailable

Static Methods

create

splitCommand

Splits the string command into a list of tokens, and returns the list.

class qgis.core.QgsRunProcess[source]

Bases: QObject

static create(action: str | None, capture: bool) QgsRunProcess | None[source]
Parameters:
  • action (Optional[str])

  • capture (bool)

Return type:

Optional[QgsRunProcess]

dialogGone(self)[source]
processError(self, a0: QProcess.ProcessError)[source]
Parameters:

a0 (QProcess.ProcessError)

processExit(self, a0: int, a1: QProcess.ExitStatus)[source]
Parameters:
  • a0 (int)

  • a1 (QProcess.ExitStatus)

static splitCommand(command: str | None) List[str][source]

Splits the string command into a list of tokens, and returns the list.

Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself.

Added in version 3.18.

Parameters:

command (Optional[str])

Return type:

List[str]

stderrAvailable(self)[source]
stdoutAvailable(self)[source]