From 615c5e0eaa8318528cdada0a9008c02b1d741ee1 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 19 Apr 2011 11:13:01 -0700 Subject: [PATCH] python: different import for dealing with demandimport --- src/python/m5/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py index e152cf021..930609b6b 100644 --- a/src/python/m5/__init__.py +++ b/src/python/m5/__init__.py @@ -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 -- 2.30.2