diff options
author | spoob <spoob@gmx.de> | 2009-09-04 15:13:57 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-09-04 15:13:57 +0200 |
commit | 6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c (patch) | |
tree | 12c44e446f2d82785572b2577a39a96e741c34a9 /pyLoadCore.py | |
parent | pyLoad RC (diff) | |
download | pyload-6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c.tar.xz |
clean root folder
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 9 |
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(): |