[Qgis-developer] Unloading and reloading of plugins

Martin Dobias wonder.sk at gmail.com
Thu Jan 7 10:11:17 EST 2010


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).

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/

Bye
Martin


More information about the Qgis-developer mailing list