Same fix for -P option as Steve's previous fix.
authorKevin Lim <ktlim@umich.edu>
Mon, 5 Jun 2006 18:49:14 +0000 (14:49 -0400)
committerKevin Lim <ktlim@umich.edu>
Mon, 5 Jun 2006 18:49:14 +0000 (14:49 -0400)
--HG--
extra : convert_revision : aaefeafa04df1074711f90b9e1f5c488d4c678d3

src/python/m5/__init__.py

index 5bd9bf22ccae47a3b0c0d5ebd31765d13cc6b9fd..4f29c55e8f84157f49bcfa7a4c0dc34f5f47d9a2 100644 (file)
@@ -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)