X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nodemanager.py;h=7e7dd9dfde38013fced2c633e723346e23caa1bd;hb=4e488ba339356a898cf7d42f22e4224f7ec07428;hp=e998a0488a02263e15c19922315f4cb94a79380f;hpb=474c12c7e815776b0eac7dfb858af378bd7e59b2;p=nodemanager.git diff --git a/nodemanager.py b/nodemanager.py old mode 100644 new mode 100755 index e998a04..7e7dd9d --- 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