mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update pialert.py
add filter to ignore __pycache__ in plugin dir
This commit is contained in:
@@ -3784,8 +3784,9 @@ def get_plugins_configs():
|
|||||||
# for root, dirs, files in os.walk(pluginsPath):
|
# for root, dirs, files in os.walk(pluginsPath):
|
||||||
|
|
||||||
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