1.默认使用数据库。

This commit is contained in:
facat 2019-06-22 15:20:58 +08:00
parent f9bff910bb
commit d84e53bf83
1 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,8 @@
import argparse
import json
import sys
print('Config is loaded.')
print("Config is loaded.")
_g_args = None
_json_obj = None
@ -43,8 +44,10 @@ def init_config():
_args = parser.parse_args()
_g_args = _args
global _json_obj
_json_obj = read_json()
return _args
js = read_json()
if "mysql_enable" not in js:
js["mysql_enable"] = True # 默认使用数据库
_json_obj = js
def get(_setting):