From e9d557ac36da8752fd871dd30394a8e3efe0852d Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 23 Aug 2012 15:13:13 -0400 Subject: [PATCH] fix to work with earlier versions of python --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index fa3a133..6b6d588 100644 --- a/config.py +++ b/config.py @@ -17,7 +17,7 @@ FINE_SIZE = 5 CURRENCY = "$" # check the version of ledger to find out which commands to use -if subprocess.check_output(['ledger', '--version'])[7] == "3": +if subprocess.Popen(['ledger', '--version'], stdout=subprocess.PIPE).communicate()[0][7] == '3' BALANCE_CMD = ['ledger', '-f', os.path.join(HERE,'ledger'), '--no-color', '-n', 'balance'] -- 2.30.2