update:完善数据库和Kafka相关结构
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
[server]
|
||||
listen = 0.0.0.0
|
||||
port = 8080
|
||||
debug = true
|
10
conf/util.py
10
conf/util.py
@@ -1,8 +1,10 @@
|
||||
import configparser
|
||||
|
||||
config_file_path = '/conf/config.ini'
|
||||
config = configparser.ConfigParser()
|
||||
config_file_path = "config.ini"
|
||||
|
||||
|
||||
def get_config_object(): return config
|
||||
""" 返回配置对象 """
|
||||
def get_config_object():
|
||||
""" 返回配置对象 """
|
||||
config = configparser.ConfigParser()
|
||||
config.read(config_file_path, encoding='utf-8')
|
||||
return config
|
Reference in New Issue
Block a user