code: def generatePlugins(widgetPath = None, buildPath = None):
      
      if widgetPath is None:
          widgetPath = WIDGET_PATH
          
      if buildPath is None:
          buildPath = BUILD_PATH
      
      for basepath in widgetPath.split(os.path.pathsep):
          if not basepath:
              continue
              
          # load packaged widgets
          for filepath in glob.glob(os.path.join(basepath, '*/__init__.py')):
              generatePlugins(os.path.dirname(filepath), buildPath)
          
          # load module widgets
          for filepath in glob.glob(os.path.join(basepath, '*.py')):
              generatePlugin(filepath, buildPath)
docs: Generates all the plugin files for the system and imports them.
      
      :param      widgetPath | <str> || None
                  buildPath  | <str> || None