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) |