mirror of https://github.com/devine-dl/devine.git
Fix yet another startup crash when loading the config
This commit is contained in:
parent
3cfc679294
commit
d427ec8472
|
@ -77,6 +77,7 @@ class Config:
|
||||||
# noinspection PyProtectedMember
|
# noinspection PyProtectedMember
|
||||||
config_path = Config._Directories.user_configs / Config._Filenames.root_config
|
config_path = Config._Directories.user_configs / Config._Filenames.root_config
|
||||||
if not config_path.is_file():
|
if not config_path.is_file():
|
||||||
|
Config._Directories.user_configs.mkdir(parents=True, exist_ok=True)
|
||||||
config_path.write_text("")
|
config_path.write_text("")
|
||||||
config = Config.from_yaml(config_path)
|
config = Config.from_yaml(config_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue