PyDocs

Nav

Generic Operating System Services

getenv

os

function (source) UnixWindows
  • getenv(key, default=None)
Get an environment variable, return None if it doesn't exist.
The optional second argument can specify an alternate default.
key, default and the result are str.
0 Examples
No examples for os/getenv.
See Also
No see-alsos for os/getenv
0 Notes
No notes for getenv