def unzip(path):
     with zipfile.ZipFile(path) as zip:
         for name in zip.namelist():
             zipped = zip.read(name)
             if name.endswith('.component'):
                 process_ini(zipped.split('\r\n'))
             elif name.endswith('.py'):
                 process_script(zipped)
 def __init__(self):
     with open('app_config.ini') as file:
         cfg = process_ini(tuple(file))
         self.db_path = cfg.get('db_path')