def env(*vars, **kwargs):
    for v in vars:
        value = os.environ.get(v, None)
        if value:
            return value
    return kwargs.get('default', '')
Search for the first defined of possibly many env vars
dataset/ETHPy150Open openstack/python-barbicanclient/barbicanclient/client.py/env