mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Made sure the default plugins aren't listed in the plugins list.
This commit is contained in:
parent
2e82a85e40
commit
d3a81688fa
@ -133,6 +133,11 @@ if __name__ == '__main__':
|
||||
if filename.endswith('.py') and filename[0].isupper():
|
||||
plugins.append(os.path.splitext(filename)[0])
|
||||
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':
|
||||
print 'The available plugins are:\n %s' % '\n '.join(plugins)
|
||||
while yn('Would you like to add a plugin?') == 'y':
|
||||
|
Loading…
Reference in New Issue
Block a user