Skip to content

Environment Variable API

api_set_environment_variables(env_vars)

Sets the environment variables for the current session.

Parameters:

Name Type Description Default
env_vars dict

A dictionary containing the environment variables to set.

required

Returns:

Type Description
None

None

Source code in moonshot/src/api/api_environment_variables.py
def api_set_environment_variables(env_vars: dict) -> None:
    """
    Sets the environment variables for the current session.

    Args:
        env_vars (dict): A dictionary containing the environment variables to set.

    Returns:
        None
    """
    EnvironmentVars.load_env(env_vars)