1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

Don't try to load files in the plugin folder as plugins

Fixes #325
This commit is contained in:
Jonathan Harris 2018-05-27 15:46:56 +01:00
parent 8efc32a9d7
commit 63eb128934

View File

@ -169,7 +169,7 @@ def load_plugins(master):
# Load any plugins that are also packages first
for name in sorted(os.listdir(config.plugin_dir),
key = lambda n: (not os.path.isfile(os.path.join(config.plugin_dir, n, '__init__.py')), n.lower())):
if name[0] in ['.', '_']:
if not os.path.isdir(os.path.join(config.plugin_dir, name)) or name[0] in ['.', '_']:
pass
elif name.endswith('.disabled'):
name, discard = name.rsplit('.', 1)