def __init__(self, path):
        """Initialize variables from data on path."""
        self.__option = _VerseGroup(path)
        self.__groups = []
        for name in os.listdir(path):
            path_name = os.path.join(path, name)
            if os.path.isdir(path_name):
                self.__groups.append(_VerseGroup(path_name, name))
        self.__groups.sort(key=lambda group: group.title)
        self.__cache = self.__cache()
Initialize variables from data on path.
recipes/Python/577049_Bible_Verse_Quiz__librarypy/recipe-577049.py