add namespace MDRS_CLIENT to customizable enviroment variables.
This commit is contained in:
parent
5c41ed041d
commit
5a5beb5645
@ -1,2 +1,2 @@
|
||||
# CONFIG_DIRNAME="~/.mdrs-client"
|
||||
# CONCURRENT=10
|
||||
# MDRS_CLIENT_CONFIG_DIRNAME="~/.mdrs-client"
|
||||
# MDRS_CLIENT_CONCURRENT=10
|
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -13,8 +13,8 @@
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
// Extensions - Code Spell Checker
|
||||
"cSpell.ignoreWords": ["getframe", "pydantic"],
|
||||
"cSpell.words": ["mdrs", "mdrsclient", "neurodata", "chacl", "Neuroinformatics", "RIKEN"],
|
||||
"cSpell.ignoreWords": ["getframe", "pydantic", "UNLCK"],
|
||||
"cSpell.words": ["chacl", "mdrs", "mdrsclient", "neurodata", "Neuroinformatics", "RIKEN"],
|
||||
// Extensions - isort
|
||||
"isort.args": ["--profile=black"],
|
||||
// Extensions - Prettier
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user