mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
get_plugin_config changed to top level folders
This commit is contained in:
@@ -3770,7 +3770,10 @@ def get_plugins_configs():
|
|||||||
|
|
||||||
pluginsList = []
|
pluginsList = []
|
||||||
|
|
||||||
for root, dirs, files in os.walk(pluginsPath):
|
# only top level directories required. No need for the loop
|
||||||
|
# for root, dirs, files in os.walk(pluginsPath):
|
||||||
|
|
||||||
|
dirs = next(os.walk(pluginsPath))[1]
|
||||||
for d in dirs: # Loop over directories, not files
|
for d in dirs: # Loop over directories, not files
|
||||||
pluginsList.append(json.loads(get_file_content(pluginsPath + "/" + d + '/config.json')))
|
pluginsList.append(json.loads(get_file_content(pluginsPath + "/" + d + '/config.json')))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user