X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/6453bb4008557655500c8c3d42db48014b484c47..e05ac2fa205c2454765d57a15b34e27ec5c469f4:/config.py 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']