No need to use os.path.relpath() when Path() knows everything anyway

This commit is contained in:
Ashwin Bharambe 2024-11-23 11:45:47 -08:00
parent a23960663d
commit 358db3c5b6

View file

@ -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()