Project/ProjectBrowserModel.py

changeset 39
ce735122a1fb
parent 13
1af94a91f439
child 97
c4086afea02b
equal deleted inserted replaced
38:5fe2b7deab15 39:ce735122a1fb
539 539
540 @param name name of the item (string) 540 @param name name of the item (string)
541 @return reference to the item found 541 @return reference to the item found
542 """ 542 """
543 if QDir.isAbsolutePath(name): 543 if QDir.isAbsolutePath(name):
544 name.replace(self.project.ppath + os.sep, "") 544 name = name.replace(self.project.ppath + os.sep, "")
545 pathlist = re.split(r'/|\\', name) 545 pathlist = re.split(r'/|\\', name)
546 if len(pathlist) > 0: 546 if len(pathlist) > 0:
547 olditem = self.rootItem 547 olditem = self.rootItem
548 for p in pathlist: 548 for p in pathlist:
549 itm = self.findChildItem(p, 0, olditem) 549 itm = self.findChildItem(p, 0, olditem)

eric ide

mercurial