pyblish / pyblish-base

Pyblish base library - see https://github.com/pyblish/pyblish for details.
Other
123 stars 60 forks source link

deregister_all_plugins not working as expected #375

Closed hannesdelbeke closed 2 years ago

hannesdelbeke commented 2 years ago

following code still loads the default plugins in QML. expected no plugins loaded at all.

    pyblish.api.register_gui("pyblish_qml")
    pyblish_maya.setup(menu=False)
    pyblish.api.deregister_all_plugins()
    print (pyblish.api.registered_plugins())  # outputs []
    pyblish.api.deregister_all_targets()
    pyblish.api.register_target("character")
    pyblish_maya.show()
    print (pyblish.api.registered_plugins())  # outputs []

image

hannesdelbeke commented 2 years ago

also had to deregister the paths. that fixed it pyblish.api.deregister_all_paths()