diff --git a/app/plugins/functions.py b/app/plugins/functions.py index dbaaac73..2ab67797 100644 --- a/app/plugins/functions.py +++ b/app/plugins/functions.py @@ -231,6 +231,10 @@ def get_plugins(): manifest_path, min_version, settings.VERSION)) continue + # Skip plugins in blacklist + if plugin.get_name() in settings.PLUGINS_BLACKLIST: + continue + plugins.append(plugin) except Exception as e: logger.warning("Failed to instantiate plugin {}: {}".format(dir, e)) diff --git a/webodm/settings.py b/webodm/settings.py index 066a1b5b..6ef2642b 100644 --- a/webodm/settings.py +++ b/webodm/settings.py @@ -70,6 +70,11 @@ PROCESSING_NODES_ONBOARDING = None # Default CSS to add to theme DEFAULT_THEME_CSS = '' +# Plugins never to load +PLUGINS_BLACKLIST = [ + #'measure', +] + # Application definition INSTALLED_APPS = [