in src/chug/common/urls.py [0:0]
def envlookup(m):
"""Look up match in the environment with prefix WDS_.
Args:
m: a match object
Returns:
str: the value of the environment variable WDS_<m.group(1)>
"""
key = m.group(1)
for prefix in ('WDS_', 'CHUG_'):
key = prefix + key
if key in os.environ:
return os.environ[key]
assert key in os.environ, f"missing WDS/CHUG environment variable for {key}"