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.
This commit is contained in:
Nathan Binkert 2008-06-14 21:16:00 -07:00
parent fc48d1dcf5
commit bbeb8082a5

View file

@ -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