v2.0.0
Loading...
Searching...
No Matches
UTILSLIB::PythonRunnerConfig Struct Reference

Script execution configuration. More...

#include <python_runner.h>

Public Attributes

QString pythonExe = QStringLiteral("python3")
QString workingDir
QStringList extraEnv
int timeoutMsec = -1
bool unbuffered = true
QString venvDir
QString packageDir
QString requirementsFile

Detailed Description

Script execution configuration.

Configuration for a PythonRunner invocation.

Definition at line 84 of file python_runner.h.

Member Data Documentation

◆ extraEnv

QStringList UTILSLIB::PythonRunnerConfig::extraEnv

KEY=VALUE pairs appended to environment.

Definition at line 88 of file python_runner.h.

◆ packageDir

QString UTILSLIB::PythonRunnerConfig::packageDir

Directory containing pyproject.toml for pip install . (preferred).

Definition at line 92 of file python_runner.h.

◆ pythonExe

QString UTILSLIB::PythonRunnerConfig::pythonExe = QStringLiteral("python3")

Python interpreter path or command.

Definition at line 86 of file python_runner.h.

◆ requirementsFile

QString UTILSLIB::PythonRunnerConfig::requirementsFile

Fallback: path to requirements.txt for pip install -r.

Definition at line 93 of file python_runner.h.

◆ timeoutMsec

int UTILSLIB::PythonRunnerConfig::timeoutMsec = -1

Wall-clock timeout (-1 = no limit).

Definition at line 89 of file python_runner.h.

◆ unbuffered

bool UTILSLIB::PythonRunnerConfig::unbuffered = true

Pass -u to Python for unbuffered I/O.

Definition at line 90 of file python_runner.h.

◆ venvDir

QString UTILSLIB::PythonRunnerConfig::venvDir

Virtual-env directory (empty = no venv).

Definition at line 91 of file python_runner.h.

◆ workingDir

QString UTILSLIB::PythonRunnerConfig::workingDir

Working directory (empty = inherit).

Definition at line 87 of file python_runner.h.


The documentation for this struct was generated from the following file: