(self, name: str)
Get the plugin named ``name``. If no such plugin is currently active, try to activate a new
        one using the current preset.
Get the plugin named ``name``. If no such plugin is currently active, try to activate a new
        one using the current preset.
Get the plugin named name . If no such plugin is currently active try to activate a new one using the current preset .
def get_plugin(self, name: str) -> 'SimStatePlugin':
        """
        Get the plugin named ``name``. If no such plugin is currently active, try to activate a new
        one using the current preset.
        """
        if name in self._active_plugins:
            return self._active_plugins[name]

        elif self.has_plugin_preset:
            plugin_cls = self._active_preset.request_plugin(name)
            plugin = self._init_plugin(plugin_cls)

            # Remember that this plugin was provided by preset.
            self._provided_by_preset.append(id(plugin))

            self.register_plugin(name, plugin)
            return plugin

        else:
            raise AngrNoPluginError("No such plugin: %s" % name)
def get_plugin ( self , name : str ) -> 'SimStatePlugin' : if name in self . _active_plugins : return self . _active_plugins [ name ] elif self . has_plugin_preset : plugin_cls = self . _active_preset . request_plugin ( name ) plugin = self . _init_plugin ( plugin_cls ) # Remember that this plugin was provided by preset. self . _provided_by_preset . append ( id ( plugin ) ) self . register_plugin ( name , plugin ) return plugin else : raise AngrNoPluginError ( "No such plugin: %s" % name )