cstar.system.environment.CStarEnvironment.set_env_var

Attention

This project is still in an early phase of development.

The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.

cstar.system.environment.CStarEnvironment.set_env_var#

static CStarEnvironment.set_env_var(key: str, value: str) None#

Set value of an environment variable.

TODO: Remove unless new functionality is needed here.

Note: after removing the persisted user_env file, this method seems silly. Leaving it for the moment, just so we don’t have to update everywhere that uses it, and because we may want some other behavior around config files or logging to be happening here in the future.

Parameters:
  • key (str) – The environment variable to set.

  • value (str) – The value to set for the environment variable.