Update module-manager to use enabled folder with regular files.

This commit is contained in:
James Valleroy committed 2014-09-07 16:06:19 +00:00
1 parent 0b5af37610
commit fd01cc84fe
2 files changed
+36 -27

No files matched your search

+4 -1
View File
@@ -3,6 +3,7 @@ from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.template.response import TemplateResponse
from gettext import gettext as _
import os
from plinth import actions
from plinth import cfg
@@ -16,7 +17,9 @@ def get_modules_available():
def get_modules_enabled():
"""Return list of all modules"""
output = actions.run('module-manager', ['list-enabled'])
root = os.path.join(os.path.dirname(__file__), '..', '..')
output = actions.run('module-manager',
['list-enabled', root])
return output.split()