def iterEntries(self):
        """
        Iterate the entries on my sysPath.

        @return: a generator yielding PathEntry objects
        """
        for pathName in self.sysPath:
            fp = self._smartPath(pathName)
            yield PathEntry(fp, self)

        Iterate the entries on my sysPath.

        @return: a generator yielding PathEntry objects
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/modules.py