You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shadowsocks-456-mod-py/configloader.py

22 lines
347 B
Python

#!/usr/bin/python
# -*- coding: UTF-8 -*-
import importloader
g_config = None
m_config = None
def load_config():
global g_config
g_config = importloader.loads(['userapiconfig', 'apiconfig'])
m_config = importloader.loads(['config',])
def get_config():
return g_config
def get_mconfig():
return m_config
load_config()