diff --git a/chinook/_config.py b/chinook/_config.py index ae7970e..9cb1655 100644 --- a/chinook/_config.py +++ b/chinook/_config.py @@ -30,6 +30,9 @@ class Config(yaml.YAMLObject): ) ] + config_directory: ClassVar[Path] = \ + Path.home() / ".config" / "chinook" + yaml_dumper: ClassVar[type[yaml.SafeDumper]] = yaml.SafeDumper yaml_loader: ClassVar[type[yaml.SafeLoader]] = yaml.SafeLoader yaml_tag: ClassVar[str] = u"!config" @@ -42,12 +45,6 @@ class Config(yaml.YAMLObject): candidates = self.toolings + self._DEFAULT_TOOLS return next((t for t in candidates if t.native), None) - @classmethod - @property - @cache - def config_directory(cls) -> Path: - return Path.home() / ".config" / "chinook" - @classmethod def create_default_or_load(cls, cfgpath: Path) -> Self: if Path.exists(cfgpath):