[Qgis-developer] QgsVectorLayer Failed To load
Germán Carrillo
carrillo.german at gmail.com
Wed Dec 23 09:17:49 EST 2009
I'm not sure. I do use this to set the qgis_prefix:
-----------------------------------------------
* if os.name == "nt":
osgeo4wDir = "C:/OSGeo4W/apps/qgis-1.3"
basicDir = "C:/qgis"
if os.path.isdir( osgeo4wDir ):
qgis_prefix = osgeo4wDir
else:
qgis_prefix = basicDir
else:
qgis_prefix = "/usr"*
* if not os.path.isdir( qgis_prefix ):
raise RuntimeError, "QGIS dir not found!"*
-----------------------------------------------
Even better is to copy the plugins and resources dirs from QGIS installation
to your application dir. This way you can set the qgis_prefix to '.' .
(Tested on Windows)
Regards.
Germán
El 23 de diciembre de 2009 04:56, Luca Delucchi <lucadeluge at gmail.com>escribió:
> 2009/12/22 Germán Carrillo <carrillo.german at gmail.com>:
> > Hi Luca.
> >
> > I guess you have troubles with qgis_prefix. You should set it to point
> the
> > QGIS dir.
> >
> > e.g. qgis_prefix = '/usr' (On Ubuntu it works)
> >
>
> thank's i solved it.
> Is possible to set it automatically?
>
> > Regards.
> >
> > Germán
> >
>
> Thank's
> Luca
>
--
-----------
|\__
(:>__)(
|/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091223/8f2d5b71/attachment.html
More information about the Qgis-developer
mailing list