ID EN
OS

putenv

Python 3.11

Set the environment variable named key to the string value. Such changes to the environment affect subprocesses started with os.system(), popen() or fork() and execv().

Syntax

PYTHON
os.putenv(key, value, /)

See Also

os.system() popen() fork() execv() os.environ putenv() putenv() os.environ