INNER CODE UNIT · Python

importAllPlugins

yaqwsx/KiKit · kikit/actionPlugins/__init__.py:16

def importAllPlugins():
    """
    Bring all plugins that KiKit offers into a the global namespace. This
    function is impure as it modifies the global variable scope. The purpose
    of this function is to allow the PCM proxy to operate.
    """
    import importlib

    for plugin in availablePlugins:
        module = importlib.import_module(f"kikit.actionPlugins.{plugin.package}")
        module.plugin().register()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…