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!
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!
In QGIS3, this has changed to (
Qgis
instead ofQGis
)A way to figure out whether the version is >=3.0 or not seems to be
(QGIS >=3.0)
(QGIS <= 2.18)
You can use
qgis.utils.QGis.QGIS_VERSION
: