From 4214cb8a68b4fb65c83b252b4a7fee2674cea74e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 26 Jun 2013 16:47:11 +0200 Subject: [PATCH] really keep __init__ out of the list of plugins --- nodemanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemanager.py b/nodemanager.py index e998a04..7e7dd9d 100755 --- a/nodemanager.py +++ b/nodemanager.py @@ -74,7 +74,10 @@ class NodeManager: # Deal with plugins directory if os.path.exists(self.options.path): sys.path.append(self.options.path) - plugins = [ os.path.split(os.path.splitext(x)[0])[1] for x in glob.glob( os.path.join(self.options.path,'*.py') ) ] + plugins = [ os.path.split(os.path.splitext(x)[0])[1] + for x in glob.glob( os.path.join(self.options.path,'*.py') ) + if not x.endswith("/__init__.py") + ] self.modules += plugins if self.options.user_module: assert self.options.user_module in self.modules -- 2.43.0