fix: config path for /opt/GigaAM/sd/ (parent dir in sys.path)

This commit is contained in:
dddennnisss
2026-07-27 11:38:55 +07:00
parent a1d391cf5f
commit 6c8c79cf70
+2 -1
View File
@@ -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):