Merge pull request #237 from Data-Monkey/patch-1

Update pialert.py - Thanks @Data-Monkey !
This commit is contained in:
jokob-sk authored and GitHub committed 2023-05-27 10:00:03 +10:00
commit 070e31ef19
1 file changed
+3 -2
+3 -2
View File
@@ -3784,8 +3784,9 @@ def get_plugins_configs():
# for root, dirs, files in os.walk(pluginsPath):
dirs = next(os.walk(pluginsPath))[1]
for d in dirs: # Loop over directories, not files
pluginsList.append(json.loads(get_file_content(pluginsPath + "/" + d + '/config.json')))
for d in dirs: # Loop over directories, not files
if not d.startswith( "__" ): # ignore __pycache__
pluginsList.append(json.loads(get_file_content(pluginsPath + "/" + d + '/config.json')))
return pluginsList