()
| 158 | |
| 159 | |
| 160 | def register_plugins(): |
| 161 | for plugin in get_active_plugins(): |
| 162 | try: |
| 163 | plugin.register() |
| 164 | logger.info("Registered {}".format(plugin)) |
| 165 | except Exception as e: |
| 166 | disable_plugin(plugin.get_name()) |
| 167 | logger.warning("Cannot register {}: {}".format(plugin, str(e))) |
| 168 | |
| 169 | def valid_plugin(plugin_path): |
| 170 | initpy_path = os.path.join(plugin_path, "__init__.py") |
no test coverage detected