From 10194a885f07b7d024aa806515a13588263d71e7 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 23 Feb 2006 02:21:03 +0000 Subject: some changes --- lib/python/Components/PluginComponent.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/python/Components') diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index ae06d776..f3cd7e1e 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -59,6 +59,7 @@ class PluginComponent: p.updateIcon(path) self.addPlugin(p); else: + open(path + "__init__.py", "w").close() self.readPluginList(path, modules + [x], depth - 1) def getPlugins(self, where): @@ -71,6 +72,9 @@ class PluginComponent: for p in self.plugins.get(x, [ ]): res.append(p) return res + + def clearPluginList(self): + self.pluginList = [] def shutdown(self): for p in self.pluginList[:]: -- cgit v1.2.3