Commits

andrea  committed 2a590f8

plugin wip

  • Participants
  • Parent commits a02ad33

Comments (0)

Files changed (1)

File pyred/plugins/plugin.py

+
+import os, glob
 
 from domain import domainObj as dobj
 
         pass
     def setVersion(self, version=""):
         pass
+    
+    @staticmethod
     def registerPlugin(self):
         pass
 
-class PluginManager(dobj);
+class PluginManager(dobj):
     def __init__(self):
         self.pluginReg={}
         
-    def loadPlugin(self, name=None):
+    def buildPluginList(self):
         path = os.path.join(os.path.dirname(__file__), 'plugins')
-        files = glob(os.path.join(path, '*.py'))
+        files = glob.glob(os.path.join(path, '*.py'))
         for filename in files:
             try:
                 module= __import__(filename)
             except:
                 pass
                 #TODO: add exception handling
+    
+    def getPlugIn(self, name=None):
+        pass