Fix template module

pull/70/head
Michael DeHaan 12 years ago
parent 6b152c94b9
commit 917f929e86

@ -31,8 +31,13 @@ except ImportError:
# to a dictionary
# FIXME: make more idiomatic
args = " ".join(sys.argv[1:])
items = shlex.split(args)
if len(sys.argv) == 1:
sys.exit(1)
argfile = sys.argv[1]
if not os.path.exists(argfile):
sys.exit(1)
items = shlex.split(open(argfile, 'r').read())
params = {}
for x in items:
(k, v) = x.split("=")

Loading…
Cancel
Save