From: Nathan Binkert Date: Tue, 19 Apr 2011 18:13:01 +0000 (-0700) Subject: python: different import for dealing with demandimport X-Git-Tag: stable_2012_02_02~385 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=615c5e0eaa8318528cdada0a9008c02b1d741ee1;p=gem5.git python: different import for dealing with demandimport --- 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