projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a7de5
)
Fix --var=val arg handling.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Mon, 5 Jun 2006 17:38:07 +0000
(13:38 -0400)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Mon, 5 Jun 2006 17:38:07 +0000
(13:38 -0400)
--HG--
extra : convert_revision :
72d46faf9f7562f1c8d936d2e40729e6ca96e217
src/python/m5/__init__.py
patch
|
blob
|
history
diff --git
a/src/python/m5/__init__.py
b/src/python/m5/__init__.py
index c44a9ad1f0446fcdc7db0debad02164cc7e8ba6f..5bd9bf22ccae47a3b0c0d5ebd31765d13cc6b9fd 100644
(file)
--- a/
src/python/m5/__init__.py
+++ b/
src/python/m5/__init__.py
@@
-132,10
+132,11
@@
while args_left:
# of the format --<python var>=<string value>
try:
(var, val) = arg.split('=', 1)
+ var = var[2:]
except ValueError:
panic("Could not parse configuration argument '%s'\n"
"Expecting --<variable>=<value>\n" % arg);
- e
val("%s = %s" % (var, repr(val)
))
+ e
xec "%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.