Skip to content

Commit c246c5c

Browse files
committed
Handle exporting anonymous conda environment (#1082)
`conda export env --name` doesn't work when active_prefix_name is a path (environment doesn't have a name)
1 parent b873c7e commit c246c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fipy/tools/logging/environment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def conda_info(conda="conda"):
2626

2727
info["conda_info"] = json.loads(stdout)
2828
p = subprocess.Popen([conda, "env", "export",
29-
"--name", info["conda_info"]["active_prefix_name"],
29+
"--prefix", info["conda_info"]["active_prefix"],
3030
"--json"],
3131
stdout=subprocess.PIPE)
3232
stdout, _ = p.communicate()

0 commit comments

Comments
 (0)