From: Nathan Binkert Date: Sun, 15 Jun 2008 04:16:00 +0000 (-0700) Subject: main: add .m5/options.py processing. This file is processed before X-Git-Tag: m5_2.0_beta6~112 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbeb8082a56b765181b769c5e1f41e173c0444fa;p=gem5.git 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. --- 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