From d2a1dc645835f2a42d9f73af6a02d9dc34b6b200 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Wed, 20 Dec 2023 15:58:02 +0100 Subject: [PATCH] fix conda_exe param --- constructor/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/constructor/utils.py b/constructor/utils.py index 0edd8be61..09a96f2eb 100644 --- a/constructor/utils.py +++ b/constructor/utils.py @@ -205,9 +205,10 @@ def yield_lines(path): yield line -def shortcuts_flags(info): +def shortcuts_flags(info, conda_exe=None): menu_packages = info.get("menu_packages") - is_micromamba = "micromamba" in basename(info.get("_conda_exe", "")).lower() + conda_exe = conda_exe or info.get("_conda_exe", "") + is_micromamba = "micromamba" in basename(conda_exe).lower() if menu_packages is None: # not set: we create all shortcuts (default behaviour) return ""