main.py (8664:42052d5bb793) | main.py (8666:97d873b8b13e) |
---|---|
1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 109 unchanged lines hidden (view full) --- 118 # load the options.py config file to allow people to set their own 119 # default options 120 options_file = config.get('options.py') 121 if options_file: 122 scope = { 'options' : options } 123 execfile(options_file, scope) 124 125 arguments = options.parse_args() | 1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 109 unchanged lines hidden (view full) --- 118 # load the options.py config file to allow people to set their own 119 # default options 120 options_file = config.get('options.py') 121 if options_file: 122 scope = { 'options' : options } 123 execfile(options_file, scope) 124 125 arguments = options.parse_args() |
126 | |
127 return options,arguments 128 129def interact(scope): 130 banner = "gem5 Interactive Console" 131 sys.argv = [] 132 try: 133 from IPython.Shell import IPShellEmbed 134 ipshell = IPShellEmbed(banner=banner,user_ns=scope) --- 240 unchanged lines hidden --- | 126 return options,arguments 127 128def interact(scope): 129 banner = "gem5 Interactive Console" 130 sys.argv = [] 131 try: 132 from IPython.Shell import IPShellEmbed 133 ipshell = IPShellEmbed(banner=banner,user_ns=scope) --- 240 unchanged lines hidden --- |