From a93389c3d4426a6b561c3003f18a13301d22e0d7 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Fri, 18 Apr 2025 01:02:28 -0400 Subject: [PATCH] [Docs] Update PLUGINS.md on how to use common functions --- PLUGINS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PLUGINS.md b/PLUGINS.md index da7303f4..a120985e 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -153,6 +153,16 @@ See [#1327 - ModuleNotFound when creating a new plugin.](https://github.com/EDCD for some discussion. +## Common Resources + +Some plugins may wish to use resources available in a different plugin, or use +common assets across plugins. This is possible, however care must be taken to +ensure that the plugins do not attempt to load non-existent data or create +circular imports. + +For an example of how this is done, look at the code in `plugins/common_coreutils.py` +and the usage of these functions in other core plugins. + --- ## Logging