[Otfbot-svn] r486 - trunk/helpers

allo at BerliOS allo
So Nov 2 14:32:18 CET 2008


Author: allo
Date: 2008-11-02 14:32:18 +0100 (Sun, 02 Nov 2008)
New Revision: 486

Modified:
   trunk/helpers/generateconfig.py
Log:
no __init__ in pluginlist


Modified: trunk/helpers/generateconfig.py
===================================================================
--- trunk/helpers/generateconfig.py	2008-11-01 19:54:45 UTC (rev 485)
+++ trunk/helpers/generateconfig.py	2008-11-02 13:32:18 UTC (rev 486)
@@ -8,13 +8,17 @@
 files=glob.glob("plugins/ircClient/*.py")
 modules=[]
 for file in files:
-	modules.append(file.split("plugins/ircClient/")[1].split(".py")[0])
+	plugin=file.split("plugins/irciClient/")[1].split(".py")[0]
+	if not plugin=="__init__":
+		modules.append(plugin)
 config.set("ircClientPluginsEnabled", modules, 'main')
 
 files=glob.glob("plugins/ircServer/*.py")
 modules=[]
 for file in files:
-	modules.append(file.split("plugins/ircServer/")[1].split(".py")[0])
+	plugin=file.split("plugins/ircServer/")[1].split(".py")[0]
+	if not plugin=="__init__":
+		modules.append(plugin)
 config.set("ircServerPluginsEnabled", modules, 'main')
 
 sys.stdout.write("Network Name: ")




Mehr Informationen über die Mailingliste Otfbot-dev