mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Merge remote-tracking branch 'upstream/master' into dev
This commit is contained in:
commit
f2d8267ef1
2 files changed
+40
-27
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user