From 6c8c79cf70425021ba8e7a9c90278ee5f074b7ad Mon Sep 17 00:00:00 2001 From: dddennnisss Date: Mon, 27 Jul 2026 11:38:55 +0700 Subject: [PATCH] fix: config path for /opt/GigaAM/sd/ (parent dir in sys.path) --- fetch_tickets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch_tickets.py b/fetch_tickets.py index 4570cd1..409ff5b 100644 --- a/fetch_tickets.py +++ b/fetch_tickets.py @@ -14,7 +14,8 @@ import os urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # --- ИМПОРТ КОНФИГУРАЦИИ (ВСЕ ПЕРЕМЕННЫЕ ИДУТ ОТСЮДА) --- -sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config')) +# config.py лежит в /opt/GigaAM/config/, а скрипт в /opt/GigaAM/sd/ +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from config import * def get_ts(req):