From 63eb128934d4e0f82d7b04a5cae36c79673bd789 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Sun, 27 May 2018 15:46:56 +0100 Subject: [PATCH] Don't try to load files in the plugin folder as plugins Fixes #325 --- plug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.py b/plug.py index 91784026..e4e96b6a 100644 --- a/plug.py +++ b/plug.py @@ -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)