diff options
author | spoob <spoob@gmx.de> | 2009-05-15 13:41:00 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-15 13:41:00 +0200 |
commit | 643744cb3f37c13561b392cf3d2bf1fccff1954f (patch) | |
tree | fe790a53c7489c6fc0461f971810914a3094839d | |
parent | new plugin system in Core (diff) | |
download | pyload-643744cb3f37c13561b392cf3d2bf1fccff1954f.tar.xz |
plugins now in plugins_dict
-rw-r--r-- | Core.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |