def manual_install_plugins_thread(self): """ Install a plugin from the a file. """ for p in self.plug: try: name = plugin_manager.manual_install(p[5]) p.append(name) plugin_manager.update_local_plugin_descriptor((p, )) req_command = plugin_manager.has_dependencies(p) if req_command[0]: self._manager._requirements[p[0]] = req_command[1] self.plugin_manually_installed.emit(p) except Exception as e: logger.warning("Impossible to install (%s): %s", p[0], e)