ID EN
OS

getenvb

Python 3.11

Return the value of the environment variable key as bytes if it exists, or default if it doesn’t. key must be bytes. Note that since getenvb() uses os.environb, the mapping of getenvb() is similarly also captured on import, and the function may not reflect future environment changes.

Syntax

PYTHON
os.getenvb(key, default=None)

See Also

getenvb() os.environb getenvb() getenvb() supports_bytes_environ Availability