move db_path default to load_config

This commit is contained in:
io 2021-07-26 06:47:43 +00:00
parent d0965d437b
commit 9b60540d07
3 changed files with 3 additions and 2 deletions

View file

@ -50,6 +50,7 @@ def load_config(cfg_path):
sys.exit(1)
cfg['generation_mode'] = TextGenerationMode.__members__[cfg['generation_mode']]
cfg.setdefault('db_path', 'posts.db')
return cfg