Update for 2013-01-07
[iron-blogger] / config.py
index fa3a133f1ea28c0d4e1daad4333f7bd86c79609f..0a65e79fb93bf9f8d245f3d056f2f460e1b3f0c1 100644 (file)
--- 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']
 

Benjamin Mako Hill || Want to submit a patch?