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

Add support for plugin directories #890

Open
Schamper opened this issue Oct 7, 2024 · 0 comments
Open

Add support for plugin directories #890

Schamper opened this issue Oct 7, 2024 · 0 comments
Labels
core Related to a core component of dissect.target

Comments

@Schamper
Copy link
Member

Schamper commented Oct 7, 2024

General idea is that you create your plugin in a file called _plugin.py in a certain directory. That directory can then hold other files such as specific helpers. The plugin path/name is then derived from the directory path up until the module name, instead of including it.

For example:

apps/something/myapp
- _plugin.py
- helpers.py

The plugin will register under the apps.something.myapp path.

@Schamper Schamper added the core Related to a core component of dissect.target label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to a core component of dissect.target
Projects
None yet
Development

No branches or pull requests

1 participant