From d7cfd53ce08a6f766b3eac6378c1e7c4a34187f7 Mon Sep 17 00:00:00 2001 From: Chris Cogdon Date: Mon, 2 Feb 2015 08:46:26 -0800 Subject: [PATCH] Use the argv that is passed in rather than sys.argv --- trade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trade.py b/trade.py index 4c8941a6..5cec318e 100755 --- a/trade.py +++ b/trade.py @@ -47,7 +47,7 @@ def main(argv): cmdIndex = commands.CommandIndex() - cmdenv = cmdIndex.parse(sys.argv) + cmdenv = cmdIndex.parse(argv) tdb = tradedb.TradeDB(cmdenv, load=cmdenv.wantsTradeDB) if cmdenv.usesTradeData: