[Qgis-developer] Re: GdalTools versions

Borys Jurgiel borysiasty at aster.pl
Tue Jun 8 07:26:01 EDT 2010


Dnia wtorek, 8 czerwca 2010 o 13:07:53 Giuseppe Sucameli napisał(a):
> Hi Borys,
> 
> On Mon, Jun 7, 2010 at 10:39 PM, Borys Jurgiel <borysiasty at aster.pl> wrote:
> > if QGis.QGIS_VERSION[2] < 5:
> >  [set paths and install the local translator]
> 
> I'm not sure the code above works always.
> When the QGis'll become 2.0 that condition still works? AFAIK it won't.
> 
> Regards.

Right, it seems the API changes won't be so huge to block all the 1.x plugins 
by default, so they can be prepared for 2.0. So you can use:

Gis.QGIS_VERSION[0:3] < '1.5'

(sorry for previous mistake, it returns a string, not an int)



More information about the Qgis-developer mailing list