fix README.md

This commit is contained in:
jxxghp
2023-10-07 12:26:16 +08:00
parent 47e1218fe0
commit e7c3977f7b
3 changed files with 207 additions and 6 deletions

View File

@ -268,8 +268,8 @@ class Settings(BaseSettings):
return [Path(path) for path in self.LIBRARY_PATH.split(",")]
return []
def __init__(self):
super().__init__()
def __init__(self, **kwargs):
super().__init__(**kwargs)
with self.CONFIG_PATH as p:
if not p.exists():
p.mkdir(parents=True, exist_ok=True)
@ -281,6 +281,8 @@ class Settings(BaseSettings):
p.mkdir(parents=True, exist_ok=True)
class Config:
env_file = "/config/app.env"
env_file_encoding = "utf-8"
case_sensitive = True