python: Make it possible to import the parts of m5 that are pure python

This commit is contained in:
Nathan Binkert
2009-08-16 13:39:59 -07:00
parent e1270f81bd
commit 06c7ecb207

View File

@@ -103,8 +103,11 @@ try:
except ImportError:
internal = None
import defines
build_env.update(defines.buildEnv)
try:
import defines
build_env.update(defines.buildEnv)
except ImportError:
defines = None
if internal:
defines.compileDate = internal.core.compileDate
@@ -120,4 +123,8 @@ if internal:
import SimObject
import params
import objects
try:
import objects
except ImportError:
objects = None