edit bettercap.py

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-24 00:28:55 +02:00
parent 3435e6ccec
commit bf4aec75f3
6 changed files with 61 additions and 20 deletions

View File

@ -5,6 +5,7 @@ import importlib.util
import logging
import os
import threading
import pwnagotchi.grid
default_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "default")
loaded = {}
@ -130,6 +131,8 @@ def load(config):
enabled = [name for name, options in config['main']['plugins'].items() if
'enabled' in options and options['enabled']]
pwnagotchi.grid.update_data(None, enabled)
# load default plugins
load_from_path(default_path, enabled=enabled)