mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user