mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
parent
8efc32a9d7
commit
63eb128934
2
plug.py
2
plug.py
@ -169,7 +169,7 @@ def load_plugins(master):
|
|||||||
# Load any plugins that are also packages first
|
# Load any plugins that are also packages first
|
||||||
for name in sorted(os.listdir(config.plugin_dir),
|
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())):
|
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
|
pass
|
||||||
elif name.endswith('.disabled'):
|
elif name.endswith('.disabled'):
|
||||||
name, discard = name.rsplit('.', 1)
|
name, discard = name.rsplit('.', 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user