[Qgis-developer] Determine QGIS version from Python
Germán Carrillo
carrillo.german at gmail.com
Wed Jan 5 14:54:50 EST 2011
Try this:
from qgis.core import QGis
print QGis.QGIS_VERSION
if QGis.QGIS_VERSION[0:3] <= "1.5":
...
Regards,
Germán
2011/1/5 Chris Crook <ccrook at linz.govt.nz>
> Hi All
>
> 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.
>
> 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 :-(
>
> Thanks for any help
> Chris
>
> ______________________________________________________________________________________________________
>
> This message contains information, which is confidential and may be subject
> to legal privilege.
> If you are not the intended recipient, you must not peruse, use,
> disseminate, distribute or copy this message.
> If you have received this message in error, please notify us immediately
> (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original
> message.
> LINZ accepts no responsibility for changes to this email, or for any
> attachments, after its transmission from LINZ.
>
> Thank you.
>
> ______________________________________________________________________________________________________
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
-----------
|\__
(:>__)(
|/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110105/27281086/attachment.html
More information about the Qgis-developer
mailing list