
from utils.data_handler import DataHandler

class Config(object):
    class __Config:
        def __init__(self):
            self.data_handler = DataHandler()
            self.fname = "config.json"

            config = self.__read_config()
            self.kino = config["kino"]
            self.github = config["github"]

        def __read_config(self):
            return self.data_handler.read_file(self.fname)

    instance = None
    def __init__(self):
        if not Config.instance:
            Config.instance = Config.__Config()

    def __getattr__(self, name):
        return getattr(self.instance, name)


from utils.data_handler import DataHandler

class Config(object):
    class __Config:
        def __init__(self):
            self.data_handler = DataHandler()
            self.fname = "config.json"

            config = self.__read_config()
            self.kino = config["kino"]
            self.github = config["github"]
            self.weather = config["weather"]

        def __read_config(self):
            return self.data_handler.read_file(self.fname)

    instance = None
    def __init__(self):
        if not Config.instance:
            Config.instance = Config.__Config()

    def __getattr__(self, name):
        return getattr(self.instance, name)

Add Config weather - (DARKSKY API KEY, HOME, WORK_PLACE
Add Config weather - (DARKSKY API KEY, HOME, WORK_PLACE

  
  from utils.data_handler import DataHandler
  
  class Config(object):
      class __Config:
          def __init__(self):
              self.data_handler = DataHandler()
              self.fname = "config.json"
  
              config = self.__read_config()
              self.kino = config["kino"]
              self.github = config["github"]
+             self.weather = config["weather"]
  
          def __read_config(self):
              return self.data_handler.read_file(self.fname)
  
      instance = None
      def __init__(self):
          if not Config.instance:
              Config.instance = Config.__Config()
  
      def __getattr__(self, name):
          return getattr(self.instance, name)
  
Add Config weather - (DARKSKY API KEY, HOME, WORK_PLACE
## Code Before:

from utils.data_handler import DataHandler

class Config(object):
    class __Config:
        def __init__(self):
            self.data_handler = DataHandler()
            self.fname = "config.json"

            config = self.__read_config()
            self.kino = config["kino"]
            self.github = config["github"]

        def __read_config(self):
            return self.data_handler.read_file(self.fname)

    instance = None
    def __init__(self):
        if not Config.instance:
            Config.instance = Config.__Config()

    def __getattr__(self, name):
        return getattr(self.instance, name)

## Instruction:
Add Config weather - (DARKSKY API KEY, HOME, WORK_PLACE
## Code After:

from utils.data_handler import DataHandler

class Config(object):
    class __Config:
        def __init__(self):
            self.data_handler = DataHandler()
            self.fname = "config.json"

            config = self.__read_config()
            self.kino = config["kino"]
            self.github = config["github"]
            self.weather = config["weather"]

        def __read_config(self):
            return self.data_handler.read_file(self.fname)

    instance = None
    def __init__(self):
        if not Config.instance:
            Config.instance = Config.__Config()

    def __getattr__(self, name):
        return getattr(self.instance, name)
