python: different import for dealing with demandimport

This commit is contained in:
Nathan Binkert 2011-04-19 11:13:01 -07:00
parent ddb0f1bca0
commit 615c5e0eaa

View file

@ -32,10 +32,10 @@
try:
# Try to import something that's generated by swig
import internal.core
import internal
# Try to grab something from it in case demandimport is being used
internal.core.__package__
internal.core.curTick
except ImportError:
# The import failed
internal = None