mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Make supybot-wizard see the new-style plugins.
This commit is contained in:
parent
28600531ab
commit
5948a710eb
@ -69,7 +69,8 @@ def getPlugins(pluginDirs):
|
|||||||
continue
|
continue
|
||||||
plugins = sets.Set([])
|
plugins = sets.Set([])
|
||||||
for filename in filenames:
|
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.add(os.path.splitext(filename)[0])
|
||||||
plugins.discard('Owner')
|
plugins.discard('Owner')
|
||||||
plugins = list(plugins)
|
plugins = list(plugins)
|
||||||
|
Loading…
Reference in New Issue
Block a user