I'm not sure. I do use this to set the qgis_prefix:<br>----------------------------------------------- <br><i> if <a href="http://os.name">os.name</a> == "nt":<br> osgeo4wDir = "C:/OSGeo4W/apps/qgis-1.3"<br>
basicDir = "C:/qgis"<br><br> if os.path.isdir( osgeo4wDir ):<br> qgis_prefix = osgeo4wDir<br> else:<br> qgis_prefix = basicDir<br> else:<br> qgis_prefix = "/usr"</i><br>
<br><i> if not os.path.isdir( qgis_prefix ):<br> raise RuntimeError, "QGIS dir not found!"</i><br>-----------------------------------------------<br><br>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)<br>
<br>Regards.<br><br>Germán<br><br><br><br><div class="gmail_quote">El 23 de diciembre de 2009 04:56, Luca Delucchi <span dir="ltr"><<a href="mailto:lucadeluge@gmail.com">lucadeluge@gmail.com</a>></span> escribió:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/12/22 Germán Carrillo <<a href="mailto:carrillo.german@gmail.com">carrillo.german@gmail.com</a>>:<br>
<div class="im">> Hi Luca.<br>
><br>
> I guess you have troubles with qgis_prefix. You should set it to point the<br>
> QGIS dir.<br>
><br>
> e.g. qgis_prefix = '/usr' (On Ubuntu it works)<br>
><br>
<br>
</div>thank's i solved it.<br>
Is possible to set it automatically?<br>
<br>
> Regards.<br>
><br>
> Germán<br>
><br>
<br>
Thank's<br>
<font color="#888888">Luca<br>
</font></blockquote></div>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>