Make supybot-wizard see the new-style plugins.

This commit is contained in:
James Vega 2005-05-05 22:53:29 +00:00
parent 28600531ab
commit 5948a710eb

View File

@ -69,7 +69,8 @@ def getPlugins(pluginDirs):
continue
plugins = sets.Set([])
for filename in filenames:
if filename.endswith('.py') and filename[0].isupper():
if (filename.endswith('.py') or os.path.isdir(filename)) \
and filename[0].isupper():
plugins.add(os.path.splitext(filename)[0])
plugins.discard('Owner')
plugins = list(plugins)