<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_module_folders(self, temp_repo):
 """Get a list of module paths contained in a temp directory. :param string temp_repo: the folder containing the modules. """

        paths = (
            os.path.join(temp_repo, path) for path in os.listdir(temp_repo)
            if self._is_module_included(path)
        )
        return (path for path in paths if os.path.isdir(path))