def __init__(self): self.data_dir = cfg.users_dir self.db_file = cfg.user_db sqlite_db.__init__(self, self.db_file, autocommit=True) self.__enter__()