diff --git a/common_config/__init__.py b/common_config/__init__.py index 574af4102e662f816220db7e9b57c1d1f7a9e332..f6cb7392c2cceb944a88e5babd862e09c78d79e0 100644 --- a/common_config/__init__.py +++ b/common_config/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.1' +__version__ = '0.1.2' from common_config.common import * \ No newline at end of file diff --git a/common_config/common.py b/common_config/common.py index 327156e96d0c79226ae137dcaa4e9331e4eebd06..6cee50d6b765fdee87d85942762c609cea52b39f 100644 --- a/common_config/common.py +++ b/common_config/common.py @@ -12,6 +12,11 @@ APPLICATION_NAME = "" SUFFIX = "" DEFAULT_CONFIG = "" +def read_settings(APPLICATION_NAME, SUFFIX, DEFAULT_CONFIG): + common_config.common.APPLICATION_NAME = APPLICATION_NAME + common_config.common.SUFFIX = SUFFIX + common_config.common.DEFAULT_CONFIG = DEFAULT_CONFIG + def this_or_else(this: Optional[str], other: str) -> str: """ diff --git a/pyproject.toml b/pyproject.toml index 63ba201e339028f6727dc425bb10b57717dbea44..25247237743ea658b64f81d51722517a123870bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "common-config" -version = "0.1.1" +version = "0.1.2" description = "A config library for eigenservice" authors = ["David Huss <dh@atoav.com>"]