summaryrefslogtreecommitdiff
path: root/portato/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/portato/plugin.py b/portato/plugin.py
index 88e5c55..7b8a493 100644
--- a/portato/plugin.py
+++ b/portato/plugin.py
@@ -81,6 +81,13 @@ class Plugin (object):
def calls (self):
return iter(self.__calls)
+ @property
+ def deps (self):
+ if hasattr(self, "__dependency__"):
+ return iter(self.__dependency__)
+ else:
+ return []
+
def add_menu (self, label, callable):
self.__menus.append(Menu(label, callable))