明确config.py中config.json的查找目录为当前目录 #547

This commit is contained in:
a5225662
2023-03-23 00:36:41 +08:00
parent 2d3ffa1738
commit 5e48dd50ac

View File

@@ -9,7 +9,7 @@ config = {}
def load_config():
global config
config_path = "config.json"
config_path = "./config.json"
if not os.path.exists(config_path):
raise Exception('配置文件不存在请根据config-template.json模板创建config.json文件')