[Qgis-developer] How can I get the layer path and directory name from a comboBox?

Stefano Masera stefano.masera at arpa.piemonte.it
Tue Feb 4 01:58:03 PST 2014


Hi list, 


I have a plugin where I choose a layer from a comboBox. 


How can I get the layer path and directory name in the code? 


For example, in order to get the layer name and use it in the code, I use: 



layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText()) 


Is there something to get the layer path and directory name? 


Thanks. 


Stefano 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140204/3471d62d/attachment.html>


More information about the Qgis-developer mailing list