def env_to_dict(prefix, names):
    """
    Construct dict from environment variables named: PREFIX_NAME

    @returns dict of names
    """

    env = {}
    for name in names:
        env[name] = ENV.get("_".join([prefix, name]))
        if env[name] is None:
            return None

    return env
def env_to_dict(prefix, names):
    """
    Construct dict from environment variables named: PREFIX_NAME

    @returns dict of names
    """

    env = {}
    for name in names:
        env[name] = ENV.get("_".join([prefix, name]))
        if env[name] is None:
            return None

    return env
def env_to_dict ( prefix , names ) : env = { } for name in names : env [ name ] = ENV . get ( "_" . join ( [ prefix , name ] ) ) if env [ name ] is None : return None return env
Construct dict from environment variables named: PREFIX_NAME

    @returns dict of names
Construct dict from environment variables named : PREFIX_NAME