mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
/data and /tmp standarization
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
from time import strftime
|
||||
import pytz
|
||||
from pytz import timezone, all_timezones, UnknownTimeZoneError
|
||||
from pytz import all_timezones
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
import base64
|
||||
import json
|
||||
from datetime import datetime
|
||||
|
||||
INSTALL_PATH = "/app"
|
||||
INSTALL_PATH = os.getenv('NETALERTX_APP', '/app')
|
||||
|
||||
sys.path.append(f"{INSTALL_PATH}/front/plugins")
|
||||
sys.path.append(f'{INSTALL_PATH}/server')
|
||||
|
||||
from logger import mylog, Logger
|
||||
from const import confFileName, default_tz
|
||||
from logger import mylog
|
||||
from const import default_tz, fullConfPath
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
def read_config_file():
|
||||
@@ -22,7 +22,7 @@ def read_config_file():
|
||||
config_dir[key]
|
||||
"""
|
||||
|
||||
filename = f'{INSTALL_PATH}/config/' + confFileName
|
||||
filename = fullConfPath
|
||||
|
||||
|
||||
print('[plugin_helper] reading config file')
|
||||
|
||||
Reference in New Issue
Block a user