mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Making config directory when saving configs.
This commit is contained in:
parent
7ea767dbe8
commit
2ac6d38669
1 changed files with 2 additions and 2 deletions
|
|
@ -210,8 +210,8 @@ class ConfigFile:
|
|||
self.file_lock.acquire(block=True, timeout=5.0)
|
||||
|
||||
try:
|
||||
# Config directory may not exist while testing.
|
||||
if PYTEST and not config_file.parent.is_dir():
|
||||
# Config directory may not exist.
|
||||
if not config_file.parent.is_dir():
|
||||
config_file.parent.mkdir()
|
||||
|
||||
# Read the existing config, replace all values, then save.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue