From 5af1ad62de148e2109503270b0ba57d6846b4782 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 10 Mar 2005 13:38:44 -0500 Subject: [PATCH] update genini so it is more like m5 test/genini.py: import m5config after environment variables are setup so the behaviour is more like that of the simulator and so what are normally compile-time variables like FULL_SYSTEM can be properly set from the command line. --HG-- extra : convert_revision : 1951d3015b091338724b66a3a86a818f9ac97b26 --- test/genini.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/genini.py b/test/genini.py index 9c28ef361..f4d1575db 100755 --- a/test/genini.py +++ b/test/genini.py @@ -34,7 +34,6 @@ sys.path.append(joinpath(mypath, '../util/pbs')) sys.path.append(joinpath(mypath, '../sim/pyconfig')) from importer import AddToPath, LoadMpyFile -from m5config import * AddToPath('.') @@ -49,12 +48,14 @@ try: else: name = arg[:offset] value = arg[offset+1:] - env[name] = value + os.environ[name] = value if opt == '-I': AddToPath(arg) except getopt.GetoptError: sys.exit('Improper Usage') +from m5config import * + for arg in args: LoadMpyFile(arg) -- 2.30.2