From 74f385d52d35a67b920f8edb24b1d0d537c0ee61 Mon Sep 17 00:00:00 2001 From: Fedorov Dmitriy Date: Fri, 28 Aug 2026 19:53:53 +0300 Subject: [PATCH] release 0.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Установил путь до конфига для линукса --- service_functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}")