2019-12-28 20:52:49 +00:00
|
|
|
from geruecht.logger import getLogger
|
2019-12-30 08:22:43 +00:00
|
|
|
from geruecht.configparser import ConifgParser
|
|
|
|
import os
|
|
|
|
|
|
|
|
print(os.getcwd())
|
|
|
|
|
|
|
|
config = ConifgParser('geruecht/config.yml')
|
2019-05-02 23:40:13 +00:00
|
|
|
|
|
|
|
LOGGER = getLogger(__name__)
|
2019-12-28 20:52:49 +00:00
|
|
|
|
|
|
|
class Singleton(type):
|
|
|
|
_instances = {}
|
|
|
|
def __call__(cls, *args, **kwargs):
|
|
|
|
if cls not in cls._instances:
|
|
|
|
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
|
|
|
|
return cls._instances[cls]
|
|
|
|
|
2019-12-30 08:22:43 +00:00
|
|
|
dbConfig = config.getDatabase()
|
|
|
|
ldapConfig = config.getLDAP()
|
|
|
|
accConfig = config.getAccessToken()
|
2020-01-05 13:15:02 +00:00
|
|
|
mailConfig = config.getMail()
|