Try this: <div><br></div><div>from qgis.core import QGis</div><div>print QGis.QGIS_VERSION</div><div><br></div><div>if QGis.QGIS_VERSION[0:3] <= "1.5":</div><div>...</div><div><br></div><div>Regards, </div><div>
<br></div><div>Germán</div><div><br><div class="gmail_quote">2011/1/5 Chris Crook <span dir="ltr"><<a href="mailto:ccrook@linz.govt.nz">ccrook@linz.govt.nz</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All<br>
<br>
I'm looking for help on how to find the Qgis version that is running from Python, in order to put version conditional code into a plugin.<br>
<br>
I think that generally it is a better idea to test specific capabilities, but in this case I can't find a way to do that either :-(<br>
<br>
Thanks for any help<br>
Chris<br>
______________________________________________________________________________________________________<br>
<br>
This message contains information, which is confidential and may be subject to legal privilege.<br>
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.<br>
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or <a href="mailto:info@linz.govt.nz">info@linz.govt.nz</a>) and destroy the original message.<br>
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.<br>
<br>
Thank you.<br>
______________________________________________________________________________________________________<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>
</div>