X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/6453bb4008557655500c8c3d42db48014b484c47..5b5742ed69c1ab2de9eeb5e972e5bffc13449529:/config.py?ds=inline diff --git a/config.py b/config.py index d112ea5..0a65e79 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']