def started(self, component): self.load_configuration() config = self.choice_config() if not config: return self.install_modules(config) Log.debug('install sucessfull') shutil.rmtree(os.path.join(MODULES_PATH, 'install')) Daemon.restart()