Browse Source

pamusb-conf: Default answer (yes) for the 'saving' dialog

Andrea Luzzardi 18 years ago
parent
commit
31c249ab77
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tools/pamusb-conf

+ 3
- 2
tools/pamusb-conf View File

@ -98,8 +98,9 @@ def shouldSave(options, items):
print "\n".join(["%s\t\t: %s" % item for item in items]) print "\n".join(["%s\t\t: %s" % item for item in items])
print print
print 'Save to %s ?' % options['configFile'] print 'Save to %s ?' % options['configFile']
sys.stdout.write('[y/n] ')
if sys.stdin.readline().strip() != 'y':
sys.stdout.write('[Y/n] ')
response = sys.stdin.readline().strip()
if len(response) > 0 and response.lower() != 'y':
sys.exit(1) sys.exit(1)
def prettifyElement(element): def prettifyElement(element):


Loading…
Cancel
Save