mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
Merge pull request #591 from EDCD/feature/589-sort-plugins-for-load
sort internal plugins before loading
This commit is contained in:
commit
6910696172
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