summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-05-15 13:41:00 +0200
committerGravatar spoob <spoob@gmx.de> 2009-05-15 13:41:00 +0200
commit643744cb3f37c13561b392cf3d2bf1fccff1954f (patch)
treefe790a53c7489c6fc0461f971810914a3094839d
parentnew plugin system in Core (diff)
downloadpyload-643744cb3f37c13561b392cf3d2bf1fccff1954f.tar.xz
plugins now in plugins_dict
-rw-r--r--Core.py3
1 files changed, 3 insertions, 0 deletions
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)