X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/2c61e383ade53f4af779f2398dd8e71d00b70b8c..f18e54847134bc802c80bc82443c82f9c8a4cd5d:/render.py?ds=sidebyside 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))