From 76843fc2649a4081d2e8c4bfbd4f7b5929ff5886 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 31 Oct 2005 22:41:14 -0500 Subject: 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 --- test/genini.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/genini.py b/test/genini.py index ac789e5d6..2af81fe2b 100755 --- a/test/genini.py +++ b/test/genini.py @@ -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) -- cgit v1.2.3