From 59a88babf7cce40fd9227e6ef058190d86337a29 Mon Sep 17 00:00:00 2001
From: David Huss <dh@atoav.com>
Date: Sun, 31 Oct 2021 14:47:17 +0100
Subject: [PATCH] Try read_settings()

---
 common_config/__init__.py | 2 +-
 common_config/common.py   | 5 +++++
 pyproject.toml            | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/common_config/__init__.py b/common_config/__init__.py
index 574af41..f6cb739 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 327156e..6cee50d 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 63ba201..2524723 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>"]
 
-- 
GitLab