From bbeb8082a56b765181b769c5e1f41e173c0444fa Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sat, 14 Jun 2008 21:16:00 -0700 Subject: [PATCH] main: add .m5/options.py processing. This file is processed before arguments are parsed so that they can change the default options for various config parameters. --- src/python/m5/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/python/m5/main.py b/src/python/m5/main.py index c4f26c472..4f28cf385 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -122,6 +122,13 @@ def main(): import info import internal + # load the options.py config file to allow people to set their own + # default options + options_file = config.get('options.py') + if options_file: + scope = { 'options' : options } + execfile(options_file, scope) + arguments = options.parse_args() done = False