code: def get_plugin_modules(folders, package='plugins',
                         parentpackage='linkcheck.dummy'):
      
      for folder in folders:
          for module in loader.get_folder_modules(folder, parentpackage):
              yield module
      for module in loader.get_package_modules(package):
          yield module
docs: Get plugin modules for given folders.