From: Steve Reinhardt Date: Tue, 1 Nov 2005 03:41:14 +0000 (-0500) Subject: Minor fix for test/genini.py. X-Git-Tag: m5_2.0_beta1~318^2~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76843fc2649a4081d2e8c4bfbd4f7b5929ff5886;p=gem5.git 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 --- 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)