From 1f91ff4d5e15a9dcfd3de927f795649a3097d93b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 19 Dec 2024 12:20:36 -0500 Subject: Use delivery context, not globals, to populate path to conda --- src/lib/delivery/delivery_install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c index 77bd60b..d3aab01 100644 --- a/src/lib/delivery/delivery_install.c +++ b/src/lib/delivery/delivery_install.c @@ -130,7 +130,7 @@ int delivery_purge_packages(struct Delivery *ctx, const char *env_name, int use_ const char *current_env = conda_get_active_environment(); if (current_env) { - conda_activate(globals.conda_install_prefix, env_name); + conda_activate(ctx->storage.conda_install_prefix, env_name); } struct StrList *list = NULL; @@ -174,7 +174,7 @@ int delivery_purge_packages(struct Delivery *ctx, const char *env_name, int use_ } if (current_env) { - conda_activate(globals.conda_install_prefix, current_env); + conda_activate(ctx->storage.conda_install_prefix, current_env); } return status; -- cgit