summaryrefslogtreecommitdiff
path: root/test/genini.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-03-11 18:32:36 -0500
committerNathan Binkert <binkertn@umich.edu>2005-03-11 18:32:36 -0500
commite6902a907e333c09d64d520f4c978edf7e098f6a (patch)
tree5b0acd0444285290365fbead19f081b8f3ebdd9a /test/genini.py
parentb1f41a7aa0f617014d2bf6d5d3675830ffac213c (diff)
parentfa1650a08e56b176c2b31cd5c3b8939820e93884 (diff)
downloadgem5-e6902a907e333c09d64d520f4c978edf7e098f6a.tar.xz
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into ziff.eecs.umich.edu:/z/binkertn/research/m5/current --HG-- extra : convert_revision : abc24d21097770ad323a2c0d537d3e9424db0d7d
Diffstat (limited to 'test/genini.py')
-rwxr-xr-xtest/genini.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/genini.py b/test/genini.py
index f4d1575db..025ba998a 100755
--- a/test/genini.py
+++ b/test/genini.py
@@ -30,12 +30,10 @@ from os.path import join as joinpath, realpath
mypath = sys.path[0]
sys.path.append(joinpath(mypath, '..'))
+sys.path.append(joinpath(mypath, '../python'))
sys.path.append(joinpath(mypath, '../util/pbs'))
-sys.path.append(joinpath(mypath, '../sim/pyconfig'))
-from importer import AddToPath, LoadMpyFile
-
-AddToPath('.')
+pathlist = [ '.' ]
try:
opts, args = getopt.getopt(sys.argv[1:], '-E:I:')
@@ -50,11 +48,14 @@ try:
value = arg[offset+1:]
os.environ[name] = value
if opt == '-I':
- AddToPath(arg)
+ pathlist.append(arg)
except getopt.GetoptError:
sys.exit('Improper Usage')
-from m5config import *
+from m5 import *
+
+for path in pathlist:
+ AddToPath(path)
for arg in args:
LoadMpyFile(arg)