Project/ProjectBaseBrowser.py

changeset 248
f4561c24989a
parent 97
c4086afea02b
child 458
1695e7a2db54
child 792
a13346916170
equal deleted inserted replaced
247:b3da30a52337 248:f4561c24989a
302 Public method to highlight a node given its filename. 302 Public method to highlight a node given its filename.
303 303
304 @param fn filename of file to be highlighted (string) 304 @param fn filename of file to be highlighted (string)
305 """ 305 """
306 newfn = os.path.abspath(fn) 306 newfn = os.path.abspath(fn)
307 newfn = newfn.replace(self.project.ppath + os.sep, '') 307 newfn = self.project.getRelativePath(newfn)
308 sindex = self._model.itemIndexByName(newfn) 308 sindex = self._model.itemIndexByName(newfn)
309 if sindex.isValid(): 309 if sindex.isValid():
310 index = self.model().mapFromSource(sindex) 310 index = self.model().mapFromSource(sindex)
311 if index.isValid(): 311 if index.isValid():
312 self._selectSingleItem(index) 312 self._selectSingleItem(index)

eric ide

mercurial