<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Hi list,<div><br></div><div>I have a plugin where I choose a layer from a comboBox.</div><div><br></div><div>How can I get the layer path and directory name in the code?</div><div><br></div><div>For example, in order to get the layer name and use it in the code, I use:</div><div><br></div><div>
<p><!--StartFragment-->layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText())<!--EndFragment--></p></div><div><br></div><div>Is there something to get the layer path and directory name?</div><div><br></div><div>Thanks.</div><div><br></div><div>Stefano</div><div><br></div></div></body></html>