Skip to content

ActivationVariables#

An object that holds the state of the current environment.

__init__(current_prefix=None, current_path=sys.path, path_modification_behavior=PathModificationBehavior.Prepend) #

Construct a new ActivationVariables object.

The current activated conda prefix (usually

sys.env["CONDA_PREFIX"]). This prefix is going to be deactivated.

current_path: The current PATH environment variable (usually sys.path). path_modification_behavior: The behavior to use when modifying the PATH environment variable. One of "Prepend", "Append", or "Replace". Defaults to "Prepend".