From fc16744cf5127936b938f09fed6080c33bb3d3cc Mon Sep 17 00:00:00 2001 From: Young Joon Lee Date: Fri, 28 Jul 2023 12:05:30 +0900 Subject: [PATCH] feat(core): add config_root property to GlobalHyFIConfig class --- src/hyfi/core/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hyfi/core/core.py b/src/hyfi/core/core.py index 96f20b65..5296d4b8 100644 --- a/src/hyfi/core/core.py +++ b/src/hyfi/core/core.py @@ -153,6 +153,11 @@ def config_dirname(self) -> str: """Returns the name of the configuration directory.""" return self.__config_dirname__ + @property + def config_root(self) -> str: + """Returns the path to the configuration root directory.""" + return f"{self.package_path}/{self.config_dirname}" + @property def config_module(self) -> str: """Returns the name of the configuration module."""