python: different import for dealing with demandimport
authorNathan Binkert <nate@binkert.org>
Tue, 19 Apr 2011 18:13:01 +0000 (11:13 -0700)
committerNathan Binkert <nate@binkert.org>
Tue, 19 Apr 2011 18:13:01 +0000 (11:13 -0700)
src/python/m5/__init__.py

index e152cf021cee347a0fd34dc438e9d9e031da76f2..930609b6b95abe77ac993b4419b19169d6c7d8df 100644 (file)
 
 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