# Path: moth/utils/plugin_families.py
# def get_plugin_families():
#     '''
#     :return: A list of strings with the names of the plugin families.
#     '''
#     vuln_content = os.listdir('moth/views/vulnerabilities/')
#     try:
#         vuln_content.remove('__init__.py')
#         vuln_content.remove('__init__.pyc')
#     except ValueError:
#         pass
#     return sorted(vuln_content)


from django.shortcuts import render
from django.shortcuts import render_to_response
from moth.utils.plugin_families import get_plugin_families



def home(request):
    plugin_families = get_plugin_families()
    context = {'families': plugin_families}
    

# Path: moth/utils/plugin_families.py
# def get_plugin_families():
#     '''
#     :return: A list of strings with the names of the plugin families.
#     '''
#     vuln_content = os.listdir('moth/views/vulnerabilities/')
#     try:
#         vuln_content.remove('__init__.py')
#         vuln_content.remove('__init__.pyc')
#     except ValueError:
#         pass
#     return sorted(vuln_content)


# Path: moth/views/site.py
from django.shortcuts import render
from django.shortcuts import render_to_response
from moth.utils.plugin_families import get_plugin_families




def home(request):
    plugin_families = get_plugin_families()
    context = {'families': plugin_families}
    

    response = render_to_response('moth/home.html', context)