Module control.environment
Expand source code Browse git
import os
def var(name):
"""Retrieves the value of an environment variable.
Parameters
----------
name: string
The name of the environment variable
Returns
-------
string | void
If the variable does not exist, None is returned.
"""
return os.environ.get(name, None)
Functions
def var(name)
-
Retrieves the value of an environment variable.
Parameters
name
:string
- The name of the environment variable
Returns
string | void
- If the variable does not exist, None is returned.