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:
parent
fc48d1dcf5
commit
bbeb8082a5
1 changed files with 7 additions and 0 deletions
|
@ -122,6 +122,13 @@ def main():
|
||||||
import info
|
import info
|
||||||
import internal
|
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()
|
arguments = options.parse_args()
|
||||||
|
|
||||||
done = False
|
done = False
|
||||||
|
|
Loading…
Reference in a new issue