Skip to content

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",
]

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.

2 participants