[Qgis-developer] Unloading and reloading of plugins

Anne Ghisla a.ghisla at gmail.com
Thu Jan 7 10:24:40 EST 2010


On Thu, 2010-01-07 at 16:11 +0100, Martin Dobias wrote:
> Hi all,
> 
> today I've added support for complete unloading and reloading of
> python plugins (r12690). So from now developers creating python
> plugins won't have to restart every time they do some changes.
> Instead, in qgis python console they can type:
> qgis.utils.reloadPlugin('myplugin')
> 
> ... and the plugin gets removed completely and started again (using
> fresh source files).

Well done Martin! this is for sure a long-time awaited functionality.

> It would be good to have this functionality available somewhere in the
> GUI. Any hints where it should go? Or there could be a simple plugin
> for developers that would trigger the reload... It would be even
> possible to monitor changes in plugins source code periodically and
> ask user to reload the modified plugins if any changes are detected,
> check this site for insipiration:
> http://www.indelible.org/ink/python-reloading/

IMHO, a good place can be in Plugins menu, after Manage Plugins:
something like

Reload  >  All plugins / the list of all loaded plugins so that one can
pick up just one

the automagic detection of updates can be fine too. But I'd prefer the
manual way.

my 2c, and thanks again,

Anne

> 
> Bye
> Martin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100107/3643d468/attachment.bin


More information about the Qgis-developer mailing list