<div dir="ltr">all info in QgsMapLayer:<div><a href="http://qgis.org/api/classQgsMapLayer.html">http://qgis.org/api/classQgsMapLayer.html</a><br></div><div><br></div><div>in your case: layer.source()</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 3 March 2014 16:43, Stefano Masera <span dir="ltr"><<a href="mailto:stefano.masera@arpa.piemonte.it" target="_blank">stefano.masera@arpa.piemonte.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><span style>Hi list,</span><div style><br></div><div style>I have a plugin where I choose a layer from a comboBox.</div><div style><br></div>
<div style>How can I get the layer path and directory name in the code?</div><div style><br></div><div style>For example, in order to get the layer name and use it in the code, I use:</div><div style><br></div><div style>
<p>layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText())</p></div><div style><br></div><div style>Is there something to get the layer path and directory name?</div><div style><br></div><div style>Thanks.</div>
<span class="HOEnZb"><font color="#888888"><div style><br></div><div style>Stefano</div><br></font></span></div></div><br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>