def register()

in apisix/runner/plugin/core.py [0:0]


    def register():
        plugin_path = "%s/%s" % (os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))),
                                 PluginProcess.package.replace(".", "/"))
        modules = iter_modules(path=[plugin_path])
        for _, mod_name, _ in modules:
            importlib.import_module("%s.%s" % (PluginProcess.package, mod_name))