summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-09-04 15:13:57 +0200
committerGravatar spoob <spoob@gmx.de> 2009-09-04 15:13:57 +0200
commit6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c (patch)
tree12c44e446f2d82785572b2577a39a96e741c34a9 /pyLoadCore.py
parentpyLoad RC (diff)
downloadpyload-6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c.tar.xz
clean root folder
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 801eee9c6..c0d0bccce 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -47,7 +47,7 @@ class Core(object):
"""
def __init__(self):
self.config = {}
- self.config['plugin_folder'] = "plugins"
+ self.plugin_folder = "module" + sep + "plugins"
self.plugins_avaible = {}
self.read_config()
@@ -73,7 +73,7 @@ class Core(object):
self.logger.info(_("Downloadtime: %s") % self.is_dltime()) # debug only
- path.append(self.config['plugin_folder'])
+ path.append(self.plugin_folder)
self.create_plugin_index()
self.init_server()
@@ -106,9 +106,8 @@ class Core(object):
return self.config
def create_plugin_index(self):
- plugin_folder = self.config['plugin_folder']
- for file_handler in glob(plugin_folder + sep + '*.py') + glob(plugin_folder + sep + 'DLC.pyc'):
- if file_handler != plugin_folder + sep + "Plugin.py":
+ for file_handler in glob(self.plugin_folder + sep + '*.py') + glob(self.plugin_folder + sep + 'DLC.pyc'):
+ if file_handler != self.plugin_folder + sep + "Plugin.py":
plugin_pattern = ""
plugin_file = basename(file_handler).replace('.pyc', '').replace('.py', '')
for line in open(file_handler, "r").readlines():