mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-12-04 03:55:23 +03:00
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:
1 parent
624f2a7907
commit
076eab9e22
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user