summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-06-05 14:49:14 -0400
committerKevin Lim <ktlim@umich.edu>2006-06-05 14:49:14 -0400
commit295c7a908cfeecc7276f559ff53282a177f4eb66 (patch)
tree90ccdd9f28a18d48bf2496ed2b18a3dbf9c62894 /src/python
parentcfe22d61d974a8ef8834b0262691a00f10926a86 (diff)
downloadgem5-295c7a908cfeecc7276f559ff53282a177f4eb66.tar.xz
Same fix for -P option as Steve's previous fix.
--HG-- extra : convert_revision : aaefeafa04df1074711f90b9e1f5c488d4c678d3
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py
index 5bd9bf22c..4f29c55e8 100644
--- a/src/python/m5/__init__.py
+++ b/src/python/m5/__init__.py
@@ -160,7 +160,7 @@ while args_left:
elif optchar == 'I':
AddToPath(args_left.pop(0))
elif optchar == 'P':
- eval(args_left.pop(0))
+ exec args_left.pop(0)
else:
showBriefHelp(sys.stderr)
panic("invalid argument '%s'\n" % arg_str)