fix: config path for /opt/GigaAM/sd/ (parent dir in sys.path)
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user