[Qgis-developer] Determine QGIS version from Python

Jürgen E. Fischer jef at norbit.de
Wed Jan 5 14:55:09 EST 2011


Hi Chris,

On Thu, 06. Jan 2011 at 08:41:01 +1300, Chris Crook wrote:
> 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.  

>>> qgis.core.QGis.QGIS_VERSION
'1.7.0-Trunk'
>>> qgis.core.QGis.QGIS_VERSION_INT
10700
>>> qgis.core.QGis.QGIS_SVN_VERSION
'14997'
 

Jürgen 

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the Qgis-developer mailing list