dev@locazia: fix config file does not exist

This commit is contained in:
user 2024-03-01 23:18:38 +03:00
parent c2ec577f2d
commit 5e631d39d8
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,9 @@
from app.core.models._config import ConfigFile
from app.core._config import CONFIG_FILE
import os
if not os.path.exists(CONFIG_FILE):
with open(CONFIG_FILE, 'w') as f:
f.write('{}')
active_config = ConfigFile(CONFIG_FILE)