add namespace MDRS_CLIENT to customizable enviroment variables.
This commit is contained in:
@ -4,8 +4,8 @@ from pydantic import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
config_dirname: str = "~/.mdrs-client"
|
||||
concurrent: int = 10
|
||||
mdrs_client_config_dirname: str = "~/.mdrs-client"
|
||||
mdrs_client_concurrent: int = 10
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
@ -14,5 +14,5 @@ class Settings(BaseSettings):
|
||||
|
||||
settings = Settings()
|
||||
|
||||
CONCURRENT = settings.concurrent
|
||||
CONFIG_DIRNAME = os.path.realpath(os.path.expanduser(settings.config_dirname))
|
||||
CONCURRENT = settings.mdrs_client_concurrent
|
||||
CONFIG_DIRNAME = os.path.realpath(os.path.expanduser(settings.mdrs_client_config_dirname))
|
||||
|
Reference in New Issue
Block a user