Skip to content

Commit

Permalink
Use more specific command that also enable compatibility with micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Labatut authored and xhochy committed Sep 26, 2023
1 parent 1785722 commit 72cd604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda_pack/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def name_to_prefix(name=None):
try:
conda_exe = os.environ.get("CONDA_EXE", "conda")
info = subprocess.check_output(
f"{conda_exe} info --json", shell=True, stderr=subprocess.PIPE
f"{conda_exe} env list --json", shell=True, stderr=subprocess.PIPE
).decode(default_encoding)
except subprocess.CalledProcessError as exc:
kind = ('current environment' if name is None
Expand Down

0 comments on commit 72cd604

Please sign in to comment.