From: Nathan Binkert Date: Thu, 10 Mar 2005 18:38:44 +0000 (-0500) Subject: update genini so it is more like m5 X-Git-Tag: m5_1.0_tutorial~77^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5af1ad62de148e2109503270b0ba57d6846b4782;p=gem5.git 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 --- 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)