diff options
Diffstat (limited to 'install/wsgi/plugins.py')
-rw-r--r-- | install/wsgi/plugins.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/install/wsgi/plugins.py b/install/wsgi/plugins.py index 82b35eb43..64df08765 100644 --- a/install/wsgi/plugins.py +++ b/install/wsgi/plugins.py @@ -25,14 +25,12 @@ import os from ipaplatform.paths import paths from ipapython.ipa_log_manager import root_logger -PLUGINS_DIR = paths.IPA_JS_PLUGINS_DIR - def get_plugin_index(): - if not os.path.isdir(PLUGINS_DIR): + if not os.path.isdir(paths.IPA_JS_PLUGINS_DIR): raise Exception("Supplied plugin directory path is not a directory") - dirs = os.listdir(PLUGINS_DIR) + dirs = os.listdir(paths.IPA_JS_PLUGINS_DIR) index = 'define([],function(){return[' index += ','.join("'"+x+"'" for x in dirs) index += '];});' |