move db_path default to load_config
This commit is contained in:
parent
d0965d437b
commit
9b60540d07
3 changed files with 3 additions and 2 deletions
1
third_party/utils.py
vendored
1
third_party/utils.py
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue