def __init__(self, config): self._store = minidb.Store(os.path.join(gpodder.home, self.STORE_FILE)) self._config = config self._client = None # Initialize the _client attribute and register with config self.on_config_changed() assert self._client is not None self._config.add_observer(self.on_config_changed) self._worker_thread = None atexit.register(self._at_exit)
def __init__(self, config): self._config = config self._store = minidb.Store(os.path.join(gpodder.home, self.STORE_FILE)) self._worker_thread = None atexit.register(self._at_exit)