Re: [Qgis-user] PyQGIS - problem opening shapefile

2009-01-26 Thread Martin Dobias
On Mon, Jan 26, 2009 at 8:06 PM, Tomasz Suchan wrote: > Hi all, > I'm trying to experiment with PyQGIS but I'm experiencing some problems... > When adding shapefile I get: > from qgis.core import * QgsApplication.setPrefixPath("/usr/share/qgis", True) Hi Tomasz, the prefix is incorrect

[Qgis-user] PyQGIS - problem opening shapefile

2009-01-26 Thread Tomasz Suchan
Hi all, I'm trying to experiment with PyQGIS but I'm experiencing some problems... When adding shapefile I get: >>> from qgis.core import * >>> QgsApplication.setPrefixPath("/usr/share/qgis", True) >>> QgsApplication.initQgis() >>> vlayer = QgsVectorLayer("test.shp", "test", "ogr") Failed to load