mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +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:
parent
624f2a7907
commit
076eab9e22
2
plug.py
2
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user