kopia lustrzana https://github.com/OpenDroneMap/WebODM
commit
c3de950672
|
@ -231,6 +231,10 @@ def get_plugins():
|
||||||
manifest_path, min_version, settings.VERSION))
|
manifest_path, min_version, settings.VERSION))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Skip plugins in blacklist
|
||||||
|
if plugin.get_name() in settings.PLUGINS_BLACKLIST:
|
||||||
|
continue
|
||||||
|
|
||||||
plugins.append(plugin)
|
plugins.append(plugin)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning("Failed to instantiate plugin {}: {}".format(dir, e))
|
logger.warning("Failed to instantiate plugin {}: {}".format(dir, e))
|
||||||
|
|
|
@ -70,6 +70,11 @@ PROCESSING_NODES_ONBOARDING = None
|
||||||
# Default CSS to add to theme
|
# Default CSS to add to theme
|
||||||
DEFAULT_THEME_CSS = ''
|
DEFAULT_THEME_CSS = ''
|
||||||
|
|
||||||
|
# Plugins never to load
|
||||||
|
PLUGINS_BLACKLIST = [
|
||||||
|
#'measure',
|
||||||
|
]
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
|
Ładowanie…
Reference in New Issue