diff options
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
| -rw-r--r-- | lib/python/Components/PluginComponent.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 67373ea7..10e1b59d 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -12,7 +12,7 @@ class PluginComponent: def setPluginPrefix(self, prefix): self.prefix = prefix - def getPluginList(self): + def getPluginList(self, runAutostartPlugins=False, runAutoendPlugins=False): list = [] dir = os.listdir(resolveFilename(SCOPE_PLUGINS)) self.menuDelete() @@ -36,6 +36,13 @@ class PluginComponent: pass list.append((picturepath, pluginname , x)) + if runAutostartPlugins: + try: plugin.autostart() + except: pass + if runAutoendPlugins: + try: plugin.autoend() + except: pass + except: print "Directory", path, "contains a faulty plugin" self.menuUpdate() |
