From c0ebc011a78dd85727b3d91de8cbf271a25b8819 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sat, 17 May 2008 21:44:15 +0000 Subject: allow "internal" plugins from outside of the e2 plugin directory (useful for file scanner in internal e2 code) --- lib/python/Plugins/Plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/python/Plugins/Plugin.py') diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index 4319d324..a0db1d66 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -45,8 +45,9 @@ class PluginDescriptor: # or return a function which is called with session and the interface name for extended setup of this interface WHERE_NETWORKSETUP = 10 - def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None): + def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, internal = False): self.name = name + self.internal = internal if type(where) is list: self.where = where else: -- cgit v1.2.3