From 6fa114640604e31433be5821be80effb3ea927ea Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 5 Jun 2006 13:38:07 -0400 Subject: Fix --var=val arg handling. --HG-- extra : convert_revision : 72d46faf9f7562f1c8d936d2e40729e6ca96e217 --- src/python/m5/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/m5/__init__.py') diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py index c44a9ad1f..5bd9bf22c 100644 --- a/src/python/m5/__init__.py +++ b/src/python/m5/__init__.py @@ -132,10 +132,11 @@ while args_left: # of the format --= try: (var, val) = arg.split('=', 1) + var = var[2:] except ValueError: panic("Could not parse configuration argument '%s'\n" "Expecting --=\n" % arg); - eval("%s = %s" % (var, repr(val))) + exec "%s = %s" % (var, repr(val)) elif arg.startswith('-'): # if the arg starts with '-', it should be a simulator option # with a format similar to getopt. -- cgit v1.2.3