From 530a6b8bcf90425b89d5d080af7aa1756b3092fa Mon Sep 17 00:00:00 2001 From: Angel-Karasu Date: Wed, 31 Jul 2024 13:05:44 +0200 Subject: [PATCH] Add a message when conf file is modified --- auto_cpufreq/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/config/config.py b/auto_cpufreq/config/config.py index f715377..6bab55e 100644 --- a/auto_cpufreq/config/config.py +++ b/auto_cpufreq/config/config.py @@ -31,7 +31,6 @@ class Config: def set_file(self, file:str): self.file = file - print(f"Info: Using settings defined in {file} file") self.update_config() if self.auto_reload: self.watch_manager.add_watch(path.dirname(file), mask=MASK) @@ -49,5 +48,6 @@ class Config: def update_config(self) -> None: self.conf = ConfigParser() # create new ConfigParser to prevent old data from remaining + print(f"Info: Using settings defined in {self.file} file") try: self.conf.read(self.file) except ParsingError as e: print(f"The following error occured while parsing the config file: \n{repr(e)}") \ No newline at end of file