summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-10-31 22:41:14 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2005-10-31 22:41:14 -0500
commit76843fc2649a4081d2e8c4bfbd4f7b5929ff5886 (patch)
tree7a6d58b9ea35e3a29133fc8f68f5a28092009fe7 /test
parentf069f59231e28b706f50a81b771f149a7dadfd2b (diff)
downloadgem5-76843fc2649a4081d2e8c4bfbd4f7b5929ff5886.tar.xz
Minor fix for test/genini.py.
test/genini.py: Use m5execfile to execute .py files so that sys.path gets handled correctly. --HG-- extra : convert_revision : 8d8c90a7f40d51c95ba0f43bb9f6d7b2ee49f16e
Diffstat (limited to 'test')
-rwxr-xr-xtest/genini.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/genini.py b/test/genini.py
index ac789e5d6..2af81fe2b 100755
--- a/test/genini.py
+++ b/test/genini.py
@@ -64,8 +64,7 @@ for path in pathlist:
AddToPath(path)
for arg in args:
- AddToPath(os.path.dirname(arg))
- execfile(arg)
+ m5execfile(arg, globals())
if globals().has_key('root') and isinstance(root, Root):
instantiate(root)