QProcessEnvironment¶
- PyQt5.QtCore.QProcessEnvironment
Description¶
The QProcessEnvironment class holds the environment variables that can be passed to a program.
A process’s environment is composed of a set of key=value pairs known as environment variables. The QProcessEnvironment class wraps that concept and allows easy manipulation of those variables. It’s meant to be used along with QProcess, to set the environment for child processes. It cannot be used to change the current process’s environment.
The environment of the calling process can be obtained using systemEnvironment().
On Unix systems, the variable names are case-sensitive. Note that the Unix environment allows both variable names and contents to contain arbitrary binary data (except for the NUL character). QProcessEnvironment will preserve such variables, but does not support manipulating variables whose names or values cannot be encoded by the current locale settings (see codecForLocale()).
On Windows, the variable names are case-insensitive, but case-preserving. QProcessEnvironment behaves accordingly.
See also
QProcessQProcess::systemEnvironment()QProcess::setProcessEnvironment().
Methods¶
- __init__()
TODO
- __init__(QProcessEnvironment)
TODO
- clear()
TODO
- contains(str) → bool
TODO
- __eq__(QProcessEnvironment) → bool
TODO
- insert(QProcessEnvironment)
TODO
- insert(str, str)
TODO
- isEmpty() → bool
TODO
- keys() → List[str]
TODO
- __ne__(QProcessEnvironment) → bool
TODO
- remove(str)
TODO
- swap(QProcessEnvironment)
TODO
-
@staticmethod
systemEnvironment() → QProcessEnvironment TODO
- toStringList() → List[str]
TODO
- value(str, defaultValue: str = '') → str
TODO