diff --git a/slpkg/repositories.py b/slpkg/repositories.py index df6f4178..013fe05b 100644 --- a/slpkg/repositories.py +++ b/slpkg/repositories.py @@ -11,16 +11,16 @@ from slpkg.configs import Configs @dataclass class Repositories: - config = Configs - color = config.colour() + configs = Configs + color = configs.colour() bold: str = color['bold'] red: str = color['red'] cyan: str = color['cyan'] endc: str = color['endc'] bred: str = f'{bold}{red}' - repositories_file_toml = Path(config.etc_path, 'repositories.toml') - repositories_path: Path = Path(config.lib_path, 'repositories') + repositories_file_toml = Path(configs.etc_path, 'repositories.toml') + repositories_path: Path = Path(configs.lib_path, 'repositories') repos_config = {} repositories = {} @@ -358,9 +358,9 @@ class Repositories: slint_repo_tag: str = repos_config['SLINT_REPO_TAG'] except (tomli.TOMLDecodeError, KeyError) as error: - raise SystemExit(f'\n{config.prog_name} {bred}Error{endc}: {error}: in the configuration file ' + raise SystemExit(f'\n{configs.prog_name} {bred}Error{endc}: {error}: in the configuration file ' f"'{repositories_file_toml}'.\n" - f"\nIf you have upgraded the '{config.prog_name}' probably you need to run:\n" + f"\nIf you have upgraded the '{configs.prog_name}' probably you need to run:\n" f"'mv {repositories_file_toml}.new {repositories_file_toml}'.\n" f"or '{cyan}slpkg_new-configs{endc}' command.\n")