Updated for pathlib

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 17:41:34 +03:00
parent bbf72ad9f3
commit 2b39b88986

View file

@ -13,7 +13,7 @@ class NewConfigs:
def __init__(self, options: list):
__slots__ = 'options'
self.options: list = options
self.etc_path: str = '/etc/slpkg'
self.etc_path: Path = Path('/etc/slpkg')
self.slpkg_config: Path = Path(self.etc_path, 'slpkg.toml')
self.repositories_config: Path = Path(self.etc_path, 'repositories.toml')
self.blacklist_config: Path = Path(self.etc_path, 'blacklist.toml')