Made sure the default plugins aren't listed in the plugins list.

This commit is contained in:
Jeremy Fincher 2003-09-12 21:40:34 +00:00
parent 2e82a85e40
commit d3a81688fa

View File

@ -133,6 +133,11 @@ if __name__ == '__main__':
if filename.endswith('.py') and filename[0].isupper(): if filename.endswith('.py') and filename[0].isupper():
plugins.append(os.path.splitext(filename)[0]) plugins.append(os.path.splitext(filename)[0])
plugins.sort() plugins.sort()
for s in onStart:
if s.startswith('load'):
(_, plugin) = s.split()
if plugin in plugins:
plugins.remove(plugin)
if yn('Would you like to see a list of the available modules?') == 'y': if yn('Would you like to see a list of the available modules?') == 'y':
print 'The available plugins are:\n %s' % '\n '.join(plugins) print 'The available plugins are:\n %s' % '\n '.join(plugins)
while yn('Would you like to add a plugin?') == 'y': while yn('Would you like to add a plugin?') == 'y':