Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyblish.util convenience methods doesn't take "plugins" argument into account. #286

Closed
mottosso opened this issue Jul 15, 2016 · 0 comments
Labels

Comments

@mottosso
Copy link
Member

Thanks to Philip for reporting this on the forums.

To reproduce

count = {"#": 0}

class PluginA(pyblish.api.ContextPlugin):
  order = pyblish.api.CollectorOrder

  def process(self, context):
    count["#"] += 1

class PluginB(pyblish.api.ContextPlugin):
  order = pyblish.api.CollectorOrder

  def process(self, context):
    count["#"] += 10

assert count["#"] == 0

pyblish.api.register_plugin(PluginA)
pyblish.util.collect(plugins=[PluginB])

assert count["#"] == 11, count # This becomes 1
@mottosso mottosso added the bug label Jul 15, 2016
@mottosso mottosso changed the title pyblish.util convenience methods don't take "plugins" argument into account. pyblish.util convenience methods doesn't take "plugins" argument into account. Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant