Minor fix for test/genini.py.
test/genini.py: Use m5execfile to execute .py files so that sys.path gets handled correctly. --HG-- extra : convert_revision : 8d8c90a7f40d51c95ba0f43bb9f6d7b2ee49f16e
This commit is contained in:
parent
f069f59231
commit
76843fc264
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ for path in pathlist:
|
|||
AddToPath(path)
|
||||
|
||||
for arg in args:
|
||||
AddToPath(os.path.dirname(arg))
|
||||
execfile(arg)
|
||||
m5execfile(arg, globals())
|
||||
|
||||
if globals().has_key('root') and isinstance(root, Root):
|
||||
instantiate(root)
|
||||
|
|
Loading…
Reference in a new issue