summaryrefslogtreecommitdiff
path: root/poezio/plugin.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-04-11 18:11:24 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-04-11 18:14:01 +0200
commitfcdef2d96cdb51ac59cbca0b33f898916c04aed6 (patch)
tree00e9430832bcca3172d8f747ab4930423b0f51c9 /poezio/plugin.py
parent497706582acea29c22b6e8bdde9126a3fc1eec1d (diff)
downloadpoezio-fcdef2d96cdb51ac59cbca0b33f898916c04aed6.tar.gz
poezio-fcdef2d96cdb51ac59cbca0b33f898916c04aed6.tar.bz2
poezio-fcdef2d96cdb51ac59cbca0b33f898916c04aed6.tar.xz
poezio-fcdef2d96cdb51ac59cbca0b33f898916c04aed6.zip
plugins: Add dependencies support
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/plugin.py')
-rw-r--r--poezio/plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/poezio/plugin.py b/poezio/plugin.py
index 61e0ea87..81c849b4 100644
--- a/poezio/plugin.py
+++ b/poezio/plugin.py
@@ -3,6 +3,8 @@ Define the PluginConfig and Plugin classes, plus the SafetyMetaclass.
These are used in the plugin system added in poezio 0.7.5
(see plugin_manager.py)
"""
+
+from typing import Set
from asyncio import iscoroutinefunction
from functools import partial
from configparser import RawConfigParser
@@ -399,7 +401,11 @@ class BasePlugin(object, metaclass=SafetyMetaclass):
Class that all plugins derive from.
"""
+ # Internal use only
+ _unloading = False
+
default_config = None
+ dependencies: Set[str] = set()
def __init__(self, name, plugin_api, core, plugins_conf_dir):
self.__name = name