Skip to content

Commit

Permalink
fix conda_exe param
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 20, 2023
1 parent e585dea commit d2a1dc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions constructor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit d2a1dc6

Please sign in to comment.