def _getcollector(self, path): |
if isinstance(path, tuple): |
relpath, names = path |
fspath = self.topdir.join(relpath) |
col = self._getcollector(fspath) |
else: |
path = py.path.local(path) |
assert path.check(), "%s: path does not exist" %(path,) |
-> col = self._getrootcollector(path) |
names = path.relto(col.fspath).split(path.sep) |
return col._getitembynames(names) |