summaryrefslogtreecommitdiff
path: root/test/genini.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-03-14 15:40:51 -0500
committerKevin Lim <ktlim@umich.edu>2005-03-14 15:40:51 -0500
commit8f2a84cbe5a0cd26053d49fb0376ec18bcbeb8f4 (patch)
tree1b707750f5064ed9f89a4a1ecc2f2be4d3daddc0 /test/genini.py
parentc12a665c3120b61ed4e09da5d8a52c57406763d5 (diff)
parent76e6dd01ae4a534adad1d34398fefc819771a781 (diff)
downloadgem5-8f2a84cbe5a0cd26053d49fb0376ec18bcbeb8f4.tar.xz
Merge
--HG-- extra : convert_revision : 22919164108afd74f30207606f59a38992991dae
Diffstat (limited to 'test/genini.py')
-rwxr-xr-xtest/genini.py16
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)