Explorar el Código

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

a5225662 hace 3 años
padre
commit
5e48dd50ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      config.py

+ 1 - 1
config.py

@@ -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文件')