ap-test/ap/config.py

13 lines
294 B
Python
Raw Normal View History

from ftest_common.logger import logger
class Config(object):
_instance = None
options = {}
def __new__(cls):
if cls._instance is None:
logger.info("Creating the config")
cls._instance = super(Config, cls).__new__(cls)
return cls._instance