Skip to content

Commit

Permalink
feat(core): add config_root property to GlobalHyFIConfig class
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 28, 2023
1 parent e962ae1 commit fc16744
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hyfi/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit fc16744

Please sign in to comment.