'Yield a sequence of FilePath-like objects which represent path segments.'

def _packagePaths(self):

    if (not self.isPackage()):
        return
    if self.isLoaded():
        load = self.load()
        if hasattr(load, '__path__'):
            for fn in load.__path__:
                if (fn == self.parentPath.path):
                    assert self.parentPath.exists()
                    (yield self.parentPath)
                else:
                    smp = self.pathEntry.pythonPath._smartPath(fn)
                    if smp.exists():
                        (yield smp)
    else:
        (yield self.parentPath)
