5.3.1.24.17.2. cli.helpers.spr.run_process

cli.helpers.spr.run_process(cmd: Sequence[str | Path], cwd: str | Path = WindowsPath('D:/_github/foxbms-2'), stdout: int | IO[Any] | None = -1, stderr: int | IO[Any] | None = -1, env: dict[str, str] | None = None) SubprocessResult

Run a command as a subprocess and capture its output.

Parameters:
  • cmd – Command and arguments to execute.

  • cwd – Working directory.

  • stdout – Subprocess stdout redirection.

  • stderr – Subprocess stderr redirection.

  • env – Environment variables to use.

Returns:

The result of the executed process.