From 3a7da5aed9d57ecbc404d4ebebf20013d1a38cf4 Mon Sep 17 00:00:00 2001 From: Armin Date: Tue, 21 Apr 2015 23:42:20 +0200 Subject: some fixes --- pyload/config/Setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pyload/config') 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): -- cgit v1.2.3