diff --git a/service_functions.py b/service_functions.py index 43414cc..48aadff 100644 --- a/service_functions.py +++ b/service_functions.py @@ -98,6 +98,7 @@ class ServiceFunctions: def load_config(self): + """ Загружает настройки приложения из файла config.conf. @@ -112,7 +113,8 @@ class ServiceFunctions: FileNotFoundError: Если файл config.conf не найден. """ - config_path = Path(__file__).parent / "config.conf" + config_path = "/etc/caddy-to-dsm/config.conf" + if not config_path.is_file(): logging.error(f"Config file not found: {config_path}") raise FileNotFoundError(f"Config file not found: {config_path}")