X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/2c61e383ade53f4af779f2398dd8e71d00b70b8c..64b9a7f7cfc6452d27e6eee809c41a2a6568d04b:/render.py diff --git a/render.py b/render.py index 6d6415e..58cb92e 100755 --- a/render.py +++ b/render.py @@ -13,9 +13,7 @@ from mako.template import Template from config import * def get_balance(acct): - balance_cmd_tmp = BALANCE_CMD - balance_cmd_tmp.append(acct) - p = subprocess.Popen(balance_cmd_tmp, + p = subprocess.Popen(BALANCE_CMD + [acct], stdout=subprocess.PIPE) (out, _) = p.communicate() return float(re.sub(r'\s*(\d+)\s+.*', r'\1', out))