mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Make sure it doesn't allow plugins that don't start with a capital.
This commit is contained in:
parent
467688de74
commit
148746ccd5
@ -73,7 +73,12 @@ Class = %s
|
||||
'''.strip() # This removes the newlines that precede and follow the text.
|
||||
|
||||
if __name__ == '__main__':
|
||||
name = anything('What should the name of the plugin be?')
|
||||
name = something('What should the name of the plugin be?')
|
||||
if name.endswith('.py'):
|
||||
name = name[:-3]
|
||||
while name[0].islower():
|
||||
print 'Plugin names must begin with a capital.'
|
||||
name = something('What should the name of the plugin be?')
|
||||
if name.endswith('.py'):
|
||||
name = name[:-3]
|
||||
print textwrap.fill(textwrap.dedent("""
|
||||
|
Loading…
Reference in New Issue
Block a user