|
|
@ -3,8 +3,6 @@ import redis
|
|
|
|
from utils.loaders.command_loader import loadCommands
|
|
|
|
from utils.loaders.command_loader import loadCommands
|
|
|
|
from utils.logging.log import *
|
|
|
|
from utils.logging.log import *
|
|
|
|
|
|
|
|
|
|
|
|
r = redis.StrictRedis(unix_socket_path='/tmp/redis.sock', db=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configPath = "conf/"
|
|
|
|
configPath = "conf/"
|
|
|
|
certPath = "cert/"
|
|
|
|
certPath = "cert/"
|
|
|
|
|
|
|
|
|
|
|
@ -49,5 +47,9 @@ def initConf():
|
|
|
|
loadConf(i)
|
|
|
|
loadConf(i)
|
|
|
|
|
|
|
|
|
|
|
|
def initMain():
|
|
|
|
def initMain():
|
|
|
|
|
|
|
|
global r
|
|
|
|
initConf()
|
|
|
|
initConf()
|
|
|
|
loadCommands(register)
|
|
|
|
loadCommands(register)
|
|
|
|
|
|
|
|
r = redis.StrictRedis(unix_socket_path=config["RedisSocket"], db=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|