diff options
author | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-21 23:42:20 +0200 |
---|---|---|
committer | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-21 23:42:20 +0200 |
commit | 3a7da5aed9d57ecbc404d4ebebf20013d1a38cf4 (patch) | |
tree | 140fa3da9f9a0cdfdf334b4aa4a62f22d8fab7e8 /pyload/config/Setup.py | |
parent | convert DB only if needed (diff) | |
download | pyload-3a7da5aed9d57ecbc404d4ebebf20013d1a38cf4.tar.xz |
some fixes
Diffstat (limited to 'pyload/config/Setup.py')
-rw-r--r-- | pyload/config/Setup.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index f078d54d0..e2f96c802 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -24,6 +24,11 @@ class SetupAssistant(object): self.lang = "en" self.stdin_encoding = get_console_encoding(sys.stdin.encoding) + # Input shorthand for yes + self.yes = "y" + # Input shorthand for no + self.no = "n" + def start(self): print @@ -383,7 +388,7 @@ class SetupAssistant(object): print _("2 - List users") print _("3 - Remove user") print _("4 - Quit") - action = raw_input("[1]/2/3/4: ") + action = raw_input("1/2/3/4: ") if not action in ("1", "2", "3", "4"): continue elif action == "1": @@ -463,8 +468,8 @@ class SetupAssistant(object): info = "" print "%(dep)-12s %(bool)s (%(info)s)" % {'dep': name + ':', - 'bool': _(true if value else false).upper(), - 'info': info} + 'bool': _(true if value else false).upper(), + 'info': info} def check_module(self, module): |