Well, the gui object holds a reference to the plugin object and the qaction built from the object.
While that could probably be managed, there' no guarantee that the plugin did not stick references to objects created in it anywhere else.
All in all, this is not a can of worms I want to open. With the -s switch, developing a plugin is now almost as easy as developing calibre source code (the only difference is an extra 4 second wait when launching calibre). I'm pretty happy with that.
|