diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-03-11 18:32:36 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-03-11 18:32:36 -0500 |
commit | e6902a907e333c09d64d520f4c978edf7e098f6a (patch) | |
tree | 5b0acd0444285290365fbead19f081b8f3ebdd9a /test/genini.py | |
parent | b1f41a7aa0f617014d2bf6d5d3675830ffac213c (diff) | |
parent | fa1650a08e56b176c2b31cd5c3b8939820e93884 (diff) | |
download | gem5-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-x | test/genini.py | 13 |
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) |