[Qgis-developer] Determine QGIS version from Python
carrillo.german at gmail.com
Wed Jan 5 14:54:50 EST 2011
from qgis.core import QGis
if QGis.QGIS_VERSION[0:3] <= "1.5":
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
> 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
> 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
Soluciones Geoinformáticas Libres
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer