]> projects.mako.cc - iron-blogger/blobdiff - config.py
money from the last event
[iron-blogger] / config.py
index d112ea5dfe3e5c9889cde8d1c44bec6b45db7a45..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?