<div dir="ltr">Hi Arnaud,<div><br></div><div>Thanks for your answer, it works fine but only with Python plugins. I can get the list of available plugin with:</div><div>`qgis.utils.available_plugins`<br></div><div><br></div>
<div>In my case, I'd like to enable / disable plugin like Grass or Road graph.</div><div><br></div><div>Any hint?</div><div><br></div><div>Merci.</div><div><br></div><div>Rémi</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2014-05-15 20:46 GMT+02:00 Arnaud Morvan <span dir="ltr"><<a href="mailto:arnaud.morvan@camptocamp.com" target="_blank">arnaud.morvan@camptocamp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<br>
qgis.utils.loadPlugin(packageName)<br>
qgis.utils.unloadPlugin(packageName)<br>
<br>
You can take a look at the "Plugin Reloader" plugin<br>
<a href="https://github.com/borysiasty/plugin_reloader/blob/master/reloader_plugin.py" target="_blank">https://github.com/borysiasty/plugin_reloader/blob/master/reloader_plugin.py</a><br>
<br>
qgis.utils seems to be based on qgspythonutils.h<br>
<a href="https://github.com/qgis/QGIS/blob/master/src/python/qgspythonutils.h" target="_blank">https://github.com/qgis/QGIS/blob/master/src/python/qgspythonutils.h</a><br>
<br>
Arnaud<br>
<br>
<div>Le 15/05/2014 17:51, Rémi Bovard a
écrit :<br>
</div>
<blockquote type="cite"><div><div class="h5">
<p dir="ltr">Hi list,<br>
I'm wondering what is the best way to enable / disable a plugin
in Python (like the checkbox does in the plugin manager)?<br>
Thank you in advance.<br>
Rémi</p>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>