Can someone tell me how I get the version information for python-qgis?
I have tried all the usual foo.version
or foo.__version__
or foo.VERSION
. If someone knows how to do this, it would be a great help!
UPDATE:
As of QGIS 3+, this is now in qgis.core.Qgis.QGIS_VERSION
Original answer:
You can use qgis.utils.QGis.QGIS_VERSION
:
>>> import qgis.utils
>>> qgis.utils.QGis.QGIS_VERSION
'2.0.1-Dufour'