2.1.22.9.2. cli.helpers.spr.run_process

cli.helpers.spr.run_process(cmd: Sequence[str | Path], cwd: str | Path = WindowsPath('D:/_github/foxbms-2'), stdout=-1, stderr=-1, env=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.