From 643744cb3f37c13561b392cf3d2bf1fccff1954f Mon Sep 17 00:00:00 2001 From: spoob Date: Fri, 15 May 2009 11:41:00 +0000 Subject: plugins now in plugins_dict --- Core.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Core.py') diff --git a/Core.py b/Core.py index 5bb64b1ef..50f895cad 100644 --- a/Core.py +++ b/Core.py @@ -48,6 +48,7 @@ class Core(object): self.plugin_index = "plugin_index.txt" self.plugins_avaible = {} self.plugins_needed = {} + self.plugins_dict = {} #self.applicationPath = "" self.search_updates = False self.plugins_folder = "" @@ -75,6 +76,7 @@ class Core(object): self.check_temp_file() self.check_needed_plugins() self.import_needed_plugins() + print self.plugins_dict def check_temp_file(self): if not exists(self.plugin_index): @@ -119,6 +121,7 @@ class Core(object): def import_plugin(self, needed_plugin): try: new_plugin = __import__(needed_plugin) + self.plugins_dict[new_plugin] = self.plugins_needed[needed_plugin] #if new_plugin.plugin_type in "hoster" or new_plugin.plugin_type in "container": # print "Plugin geladen: " + new_plugin.plugin_name #plugins[plugin_file] = __import__(plugin_file) -- cgit v1.2.3