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

Dynamically loading plugins #233

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Dynamically loading plugins #233

wants to merge 5 commits into from

Conversation

Baekalfen
Copy link
Owner

No description provided.

@Baekalfen Baekalfen force-pushed the dynamic_plugins branch 2 times, most recently from 1c1f71a to 1643f38 Compare October 10, 2022 15:23
Comment on lines +35 to +36
builtin_plugins = [importlib.import_module("pyboy.plugins." + m.name) for m in iter_modules(plugins.__path__)]
external_plugins = []
Copy link
Owner Author

@Baekalfen Baekalfen Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want something like Django's list of middlewares to manage loading/execution order.

MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.middleware.csrf.CsrfViewMiddleware",
]

@Baekalfen Baekalfen mentioned this pull request Nov 29, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant