Skip to content

Commit

Permalink
try to remove all just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Feb 11, 2024
1 parent 994e722 commit f96b44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda_pip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def ensure_target_env_has_externally_managed(command: str):
if list(prefix_data.query("pip")):
# leave in place if pip is still installed
return
next(get_externally_managed_path(target_prefix)).unlink()
for path in get_externally_managed_path(target_prefix):
if path.exists():
path.unlink()
else:
raise ValueError(f"command {command} not recognized.")

0 comments on commit f96b44e

Please sign in to comment.