mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Merge pull request #837 from TingPing/wizard-prompt
Wizard: Add prompt for file to save to
This commit is contained in:
commit
719559902f
@ -192,7 +192,6 @@ def main():
|
|||||||
print('+------------------------------------------------------------+')
|
print('+------------------------------------------------------------+')
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
filename = ''
|
|
||||||
if args:
|
if args:
|
||||||
parser.error('This program takes no non-option arguments.')
|
parser.error('This program takes no non-option arguments.')
|
||||||
output("""This is a wizard to help you start running supybot. What it
|
output("""This is a wizard to help you start running supybot. What it
|
||||||
@ -704,9 +703,11 @@ def main():
|
|||||||
# We're going to need to do a darcs predist thing here.
|
# We're going to need to do a darcs predist thing here.
|
||||||
#conf.supybot.debug.generated.setValue('...')
|
#conf.supybot.debug.generated.setValue('...')
|
||||||
|
|
||||||
if not filename:
|
filename = something("""In which file would you like to save
|
||||||
filename = '%s.conf' % nick
|
this config?""", default='%s.conf' % nick)
|
||||||
registry.close(conf.supybot, filename)
|
if not filename.endswith('.conf'):
|
||||||
|
filename += '.conf'
|
||||||
|
registry.close(conf.supybot, os.path.expanduser(filename))
|
||||||
|
|
||||||
# Done!
|
# Done!
|
||||||
output("""All done! Your new bot configuration is %s. If you're running
|
output("""All done! Your new bot configuration is %s. If you're running
|
||||||
|
Loading…
Reference in New Issue
Block a user