Fix async to use the new argfiles method (wrapping brain around rock, really must write module development guide)

This commit is contained in:
Michael DeHaan
2012-03-14 19:57:56 -04:00
parent aeea46678d
commit 696b67f935
5 changed files with 38 additions and 46 deletions

View File

@@ -30,12 +30,12 @@ import datetime
import traceback
# ===========================================
# convert arguments of form a=b c=d
# to a dictionary
# FIXME: make more idiomatic
args = " ".join(sys.argv[1:])
items = shlex.split(args)
# FIXME: better error handling
argsfile = sys.argv[1]
items = shlex.split(file(argsfile).read())
params = {}
for x in items:
(k, v) = x.split("=")