From 358db3c5b6b1de9243583af9c1efcc52285577a9 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Sat, 23 Nov 2024 11:45:47 -0800 Subject: [PATCH] No need to use os.path.relpath() when `Path()` knows everything anyway --- llama_stack/cli/stack/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/cli/stack/build.py b/llama_stack/cli/stack/build.py index 01b7dae66..00d62bd73 100644 --- a/llama_stack/cli/stack/build.py +++ b/llama_stack/cli/stack/build.py @@ -19,7 +19,7 @@ from llama_stack.distribution.distribution import get_provider_registry from llama_stack.distribution.resolver import InvalidProviderError from llama_stack.distribution.utils.dynamic import instantiate_class_type -TEMPLATES_PATH = Path(os.path.relpath(__file__)).parent.parent.parent / "templates" +TEMPLATES_PATH = Path(__file__).parent.parent.parent / "templates" @lru_cache()