blob: 1c3a571b05332585e5f862c48ac0d2e81108d3f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from ._base import AppFeaturePath, AppFeatureProvider
from ._data import DataManager
class ConfigManager(AppFeatureProvider):
def __init__(self) -> None:
super().__init__("config-manager")
def setup(self) -> None:
self._config_path = self.app.get_feature(DataManager).data_dir.add_subpath(
"config", False, description="Configuration file path."
)
@property
def config_path(self) -> AppFeaturePath:
return self._config_path
@property
def config_map(self) -> dict[str, str]:
raise NotImplementedError()
|