mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
fix: check conda env name using basepath in exec.py
This commit is contained in:
parent
564f0e5f93
commit
32b96d6d91
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ def formulate_run_args(image_type, image_name, config, template_name) -> list:
|
||||||
conda_env_info = json.loads(subprocess.check_output(["conda", "info", "--envs", "--json"]).decode())
|
conda_env_info = json.loads(subprocess.check_output(["conda", "info", "--envs", "--json"]).decode())
|
||||||
envs = conda_env_info["envs"]
|
envs = conda_env_info["envs"]
|
||||||
for envpath in envs:
|
for envpath in envs:
|
||||||
if envpath.endswith(env_name):
|
if os.path.basename(envpath) == env_name:
|
||||||
return envpath
|
return envpath
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue