Skip to content

Commit

Permalink
Merge pull request #549 from a5225662/master
Browse files Browse the repository at this point in the history
明确config.py中config.json的查找目录为当前目录 #547
  • Loading branch information
zhayujie committed Mar 22, 2023
2 parents 2d3ffa1 + 5e48dd5 commit a660aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

Expand Down

0 comments on commit a660aa2

Please sign in to comment.