From: Benjamin Mako Hill Date: Mon, 24 Sep 2012 01:41:17 +0000 (-0400) Subject: fix bug in the render code X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/64b9a7f7cfc6452d27e6eee809c41a2a6568d04b fix bug in the render code --- 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))