Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥚 Plugin - Support user defined plugin import capability #591

Open
mraniki opened this issue Jul 22, 2023 · 0 comments
Open

🥚 Plugin - Support user defined plugin import capability #591

mraniki opened this issue Jul 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mraniki
Copy link
Owner

mraniki commented Jul 22, 2023

    # if settings.user_plugins_allowed:
    #     with httpimport.github_repo('mraniki', 'tt_plugins'):
    #         import user_plugins
    #         user_package = importlib.import_module(user_plugins)
    #         logger.debug("Loading plugins from: %s", user_package)
    #         for _, plugin_name, _ in pkgutil.iter_modules(user_plugins):
    #             try:
    #                 module = importlib.import_module(
    #                     f"{user_plugins.__name__}.{plugin_name}")
    #                 logger.debug("Module loaded: %s", module)
    #                 self.load_plugin(module, plugin_name)
    #             except Exception as e:
    #                 logger.warning("Error loading user plugin %s: %s",
    # plugin_name, e)
@mraniki mraniki changed the title Plugin - Support user defined import plugin Plugin - Support user defined plugin import capability Jul 23, 2023
@mraniki mraniki changed the title Plugin - Support user defined plugin import capability 🥚 Plugin - Support user defined plugin import capability Jul 23, 2023
@mraniki mraniki added the enhancement New feature or request label Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant