-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Remove support for dynamic plugin imports #3524
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
Changes from all commits
d24b903
3dee0a1
e0a3553
e37db50
ed5db9f
a54c7f1
b1eae51
85eabff
4f5c4f2
b077105
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
from __future__ import annotations | ||
|
||
from .import_plugins import * | ||
from manim import config, logger | ||
|
||
from .plugins_flags import get_plugins, list_plugins | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As said in my previous comment, relative imports are beneficial to some extent (i.e. if not going up too much). It is easier to refactor (if you rename a parent module, you'd have to rename your imports as well if you had used absolute imports). |
||
|
||
__all__ = [ | ||
"get_plugins", | ||
"list_plugins", | ||
] | ||
|
||
requested_plugins: set[str] = set(config["plugins"]) | ||
missing_plugins = requested_plugins - set(get_plugins().keys()) | ||
|
||
|
||
if missing_plugins: | ||
logger.warning("Missing Plugins: %s", missing_plugins) |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-reminder: a generic example should be given, not necessarily Poetry