From 99785b5a4d595a79d5c2d41203db8272b5d05e2a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 14 Mar 2011 17:34:48 +0100 Subject: [PATCH] open stty in a shell --- weboob/tools/application/formatters/iformatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/application/formatters/iformatter.py b/weboob/tools/application/formatters/iformatter.py index 75c25778..37ea8947 100644 --- a/weboob/tools/application/formatters/iformatter.py +++ b/weboob/tools/application/formatters/iformatter.py @@ -85,7 +85,7 @@ class IFormatter(object): # XXX if stdin is not a tty, it seems that the command fails. if os.isatty(sys.stdout.fileno()) and os.isatty(sys.stdin.fileno()): - self.termrows = int( subprocess.Popen('stty size', stdout=subprocess.PIPE).communicate()[0].split()[0]) + self.termrows = int( subprocess.Popen('stty size', shell=True, stdout=subprocess.PIPE).communicate()[0].split()[0]) def after_format(self, formatted): if self.outfile != sys.stdout: