mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
supybot-wizard: Fix listing of plugins during setup.
Due to the changes to prevent the global plugins dir from being set in supybot.directories.plugins, the global plugins weren't being found. Simply extend the list of directories with the global directory. Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
0d98118247
commit
1c4738bfdc
@ -55,6 +55,7 @@ import optparse
|
||||
|
||||
import supybot.ansi as ansi
|
||||
import supybot.utils as utils
|
||||
import supybot.plugin as plugin
|
||||
import supybot.ircutils as ircutils
|
||||
import supybot.registry as registry
|
||||
|
||||
@ -254,7 +255,7 @@ def main():
|
||||
somewhere else.""")
|
||||
pluginDirs = conf.supybot.directories.plugins()
|
||||
output("""Currently, the bot knows about the following directories:""")
|
||||
output(format('%L', pluginDirs))
|
||||
output(format('%L', pluginDirs + [plugin._pluginsDir]))
|
||||
while yn('Would you like to add another plugin directory? '
|
||||
'Adding a local plugin directory is good style.',
|
||||
default=True):
|
||||
@ -451,7 +452,7 @@ def main():
|
||||
else:
|
||||
conf.registerPlugin(module.__name__, currentValue=True)
|
||||
|
||||
plugins = getPlugins(pluginDirs)
|
||||
plugins = getPlugins(pluginDirs + [plugin._pluginsDir])
|
||||
for s in ('Admin', 'User', 'Channel', 'Misc', 'Config'):
|
||||
m = loadPlugin(s)
|
||||
if m is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user