267 dirNames = [] |
267 dirNames = [] |
268 dirFullNames = [] |
268 dirFullNames = [] |
269 for itm in itmList: |
269 for itm in itmList: |
270 if isinstance(itm, ProjectBrowserFileItem): |
270 if isinstance(itm, ProjectBrowserFileItem): |
271 fn2 = itm.fileName() |
271 fn2 = itm.fileName() |
272 fn = fn2.replace(self.project.ppath+os.sep, '') |
272 fn = self.project.getRelativePath(fn2) |
273 items.append(itm) |
273 items.append(itm) |
274 fullNames.append(fn2) |
274 fullNames.append(fn2) |
275 names.append(fn) |
275 names.append(fn) |
276 else: |
276 else: |
277 dn2 = itm.dirName() |
277 dn2 = itm.dirName() |
278 dn = dn2.replace(self.project.ppath+os.sep, '') |
278 dn = self.project.getRelativePath(dn2) |
279 dirItems.append(itm) |
279 dirItems.append(itm) |
280 dirFullNames.append(dn2) |
280 dirFullNames.append(dn2) |
281 dirNames.append(dn) |
281 dirNames.append(dn) |
282 items.extend(dirItems) |
282 items.extend(dirItems) |
283 fullNames.extend(dirFullNames) |
283 fullNames.extend(dirFullNames) |