More Python hacking to deal with config.py split

and resulting recursive import trickiness.

--HG--
extra : convert_revision : 1ea93861eb8d260c9f3920dda0b8106db3e03705
This commit is contained in:
Steve Reinhardt
2006-09-04 17:14:07 -07:00
parent 1233dbb998
commit c39aea440c
35 changed files with 155 additions and 102 deletions

View File

@@ -71,8 +71,6 @@ build_env.update(defines.m5_build_env)
env = smartdict.SmartDict()
env.update(os.environ)
from main import options, arguments, main
# The final hook to generate .ini files. Called from the user script
# once the config is built.
def instantiate(root):
@@ -206,5 +204,7 @@ def switchCpus(cpuList):
# you can get the wrong result if foo is only partially imported
# at the point you do that (i.e., because foo is in the middle of
# importing *you*).
from main import options
import objects
import params
from SimObject import resolveSimObject