From f5b540813877dfe487b1d036584ea113e50372c0 Mon Sep 17 00:00:00 2001 From: Patrick Labatut Date: Fri, 15 Sep 2023 17:13:23 +0200 Subject: [PATCH] Use more specific command that also enable compatibility with micromamba --- conda_pack/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_pack/core.py b/conda_pack/core.py index da47ebb..1fa38e5 100644 --- a/conda_pack/core.py +++ b/conda_pack/core.py @@ -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