From 076eab9e2294f1246b2d470e1c2bf7ae5d871022 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 12 Jul 2020 15:50:49 +0100 Subject: [PATCH] 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 --- plug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.py b/plug.py index 3a2fee7b..56eaa884 100644 --- a/plug.py +++ b/plug.py @@ -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))