mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Merge pull request #237 from Data-Monkey/patch-1
Update pialert.py - Thanks @Data-Monkey !
This commit is contained in:
@@ -3785,7 +3785,8 @@ def get_plugins_configs():
|
|||||||
|
|
||||||
dirs = next(os.walk(pluginsPath))[1]
|
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')))
|
if not d.startswith( "__" ): # ignore __pycache__
|
||||||
|
pluginsList.append(json.loads(get_file_content(pluginsPath + "/" + d + '/config.json')))
|
||||||
|
|
||||||
return pluginsList
|
return pluginsList
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user