Hi all<br /><br />I try to start the developpement for a custom application with qgis, so I try simple things like add a vector layer but I have some problems. In a python console when I try to do something like that :<br /><br />>>> core.QgsApplication.setPrefixPath('/usr',True)<br />>>> core.QgsApplication.initQgis()<br />>>> l = core.QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr')<br />>>> l.isValid()<br /><br />I always have a False result<br /><br />But if I try in the python console of qgis :<br /><br />>>> l = QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr')<br />>>> l.isValid()<br /><br />The result is True<br /><br />Is someone have an idea ? Are there any other documentation that http://qgis.org/pyqgis-cookbook/<br /><br />Thanks a lot<br /><br />Ludovic