Fix running stack built with base conda environment

Fixes: #902
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
This commit is contained in:
Dmitry Rogozhkin 2025-01-29 23:54:27 +00:00 committed by Dmitry Rogozhkin
parent 39c34dd25f
commit d5afa91f13

View file

@ -140,6 +140,10 @@ class StackRun(Subcommand):
return
def get_conda_prefix(env_name):
# Conda "base" environment does not end with "base" in the
# prefix, so should be handled separately.
if env_name == "base":
return os.environ.get("CONDA_PREFIX")
# Get conda environments info
conda_env_info = json.loads(
subprocess.check_output(