From 5a5beb56459b9368451b2a98a022ba88800eef98 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 11 May 2023 19:01:07 +0900 Subject: [PATCH] add namespace MDRS_CLIENT to customizable enviroment variables. --- .env.default | 4 ++-- .vscode/settings.json | 4 ++-- mdrsclient/settings.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.env.default b/.env.default index eb80f93..4dc48b9 100644 --- a/.env.default +++ b/.env.default @@ -1,2 +1,2 @@ -# CONFIG_DIRNAME="~/.mdrs-client" -# CONCURRENT=10 \ No newline at end of file +# MDRS_CLIENT_CONFIG_DIRNAME="~/.mdrs-client" +# MDRS_CLIENT_CONCURRENT=10 \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index dac1d3b..1346c37 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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 diff --git a/mdrsclient/settings.py b/mdrsclient/settings.py index 997be6b..f161b5c 100644 --- a/mdrsclient/settings.py +++ b/mdrsclient/settings.py @@ -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))