projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1270f8
)
python: Make it possible to import the parts of m5 that are pure python
author
Nathan Binkert
<nate@binkert.org>
Sun, 16 Aug 2009 20:39:59 +0000
(13:39 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Sun, 16 Aug 2009 20:39:59 +0000
(13:39 -0700)
src/python/m5/__init__.py
patch
|
blob
|
history
diff --git
a/src/python/m5/__init__.py
b/src/python/m5/__init__.py
index 733258acf2a000bed27a4946c52f8f0fece970d5..c3512cd0dd39d1a506375098b8763571ab09e086 100644
(file)
--- a/
src/python/m5/__init__.py
+++ b/
src/python/m5/__init__.py
@@
-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