Преглед на файлове

Merge pull request #549 from a5225662/master

明确config.py中config.json的查找目录为当前目录 #547
master
zhayujie GitHub преди 2 години
родител
ревизия
a660aa2133
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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文件')



Loading…
Отказ
Запис