mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Improve trying to find conda executable
This commit is contained in:
parent
92efea6b76
commit
a61265effe
@ -92,8 +92,9 @@ class CondaAPI(PackageManager):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
self.conda = (
|
self.conda = (
|
||||||
find_executable("conda")
|
find_executable("conda") or
|
||||||
or Argv(select_for_platform(windows="where", linux="which"), "conda").get_output(shell=True).strip()
|
Argv(select_for_platform(windows="where", linux="which"), "conda").get_output(
|
||||||
|
shell=select_for_platform(windows=True, linux=False)).strip()
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ValueError("ERROR: package manager \"conda\" selected, "
|
raise ValueError("ERROR: package manager \"conda\" selected, "
|
||||||
|
Loading…
Reference in New Issue
Block a user