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):