From 208b861289e3295dc88cdfafbe0cbe55dcb38d83 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Fri, 27 Sep 2024 14:16:46 -0700 Subject: [PATCH] add env for LLAMA_STACK_CONFIG_DIR (#137) --- llama_stack/distribution/utils/config_dirs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/distribution/utils/config_dirs.py b/llama_stack/distribution/utils/config_dirs.py index 3785f4507..eca59493f 100644 --- a/llama_stack/distribution/utils/config_dirs.py +++ b/llama_stack/distribution/utils/config_dirs.py @@ -8,7 +8,7 @@ import os from pathlib import Path -LLAMA_STACK_CONFIG_DIR = Path(os.path.expanduser("~/.llama/")) +LLAMA_STACK_CONFIG_DIR = Path(os.getenv("LLAMA_STACK_CONFIG_DIR", os.path.expanduser("~/.llama/"))) DISTRIBS_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "distributions"