Skip to content

Commit

Permalink
Handle exporting anonymous conda environment (#1082)
Browse files Browse the repository at this point in the history
`conda export env --name` doesn't work when active_prefix_name
is a path (environment doesn't have a name)
  • Loading branch information
guyer committed Nov 20, 2024
1 parent 2054173 commit 8c0aec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fipy/tools/logging/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def conda_info(conda="conda"):

info["conda_info"] = json.loads(stdout)
p = subprocess.Popen([conda, "env", "export",
"--name", info["conda_info"]["active_prefix_name"],
"--prefix", info["conda_info"]["active_prefix"],
"--json"],
stdout=subprocess.PIPE)
stdout, _ = p.communicate()
Expand Down

0 comments on commit 8c0aec6

Please sign in to comment.