sort internal plugins before loading

This is already done for 'found' plugins, so let's avoid any potnetial
future surprise with the internal ones as well.

close #589
This commit is contained in:
Athanasius committed 2020-07-12 15:50:49 +01:00
1 parent 624f2a7907
commit 076eab9e22
1 file changed
+1 -1
+1 -1
View File
@@ -168,7 +168,7 @@ def load_plugins(master):
last_error['root'] = master
internal = []
for name in os.listdir(config.internal_plugin_dir):
for name in sorted(os.listdir(config.internal_plugin_dir)):
if name.endswith('.py') and not name[0] in ['.', '_']:
try:
plugin = Plugin(name[:-3], os.path.join(config.internal_plugin_dir, name))