I’m having an issue where I’m calling Publish.utils.collect and passing a selection of plugins that I want it to consider.
instances = pyblish.util.collect(plugins=pluginsToUse)
(The pluginsToUse variable contains a list of plugins gathered by the
pyblish.api.discover but then filtered down to what I want.)
However it is returning me instances from all plugins in the registered path not just the ones I passed, so the plugins kwarg seems to have no effect.It seems that this should be possible according to the following page:
If I made the following change to the pyblish util module, then it works the way I want it to, but obviously I don’t want to modify the Pyblish code:
line num: 134
def _convenience(order, *args, **kwargs): plugins = kwargs.get("plugins") if not plugins: plugins = [p for p in plugin.discover() if p.order < order]``` args = list(args) if len(args) > 1: args = plugins else: kwargs["plugins"] = plugins return publish(*args, **kwargs)``
Is this a bug or is it behaving normally?