diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-03-14 15:40:51 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-03-14 15:40:51 -0500 |
commit | 8f2a84cbe5a0cd26053d49fb0376ec18bcbeb8f4 (patch) | |
tree | 1b707750f5064ed9f89a4a1ecc2f2be4d3daddc0 /test/genini.py | |
parent | c12a665c3120b61ed4e09da5d8a52c57406763d5 (diff) | |
parent | 76e6dd01ae4a534adad1d34398fefc819771a781 (diff) | |
download | gem5-8f2a84cbe5a0cd26053d49fb0376ec18bcbeb8f4.tar.xz |
Merge
--HG--
extra : convert_revision : 22919164108afd74f30207606f59a38992991dae
Diffstat (limited to 'test/genini.py')
-rwxr-xr-x | test/genini.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/genini.py b/test/genini.py index f4d1575db..b8eda5d46 100755 --- a/test/genini.py +++ b/test/genini.py @@ -30,12 +30,12 @@ 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 +pathlist = [ '.' ] -AddToPath('.') +m5_build_env = {} try: opts, args = getopt.getopt(sys.argv[1:], '-E:I:') @@ -44,17 +44,21 @@ try: offset = arg.find('=') if offset == -1: name = arg - value = True + value = '1' else: name = arg[:offset] value = arg[offset+1:] os.environ[name] = value + m5_build_env[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) |