From 325acb786e5472841011cebed3cc36e535b413dc Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Mon, 15 Apr 2019 14:08:49 +0100 Subject: [PATCH] python: fix tracing after Python 3 refactor gem5.opt --debug-flags ExecAll was failing with: ImportError: No module named defines on Python 2. Change-Id: I06959d6e0ccb7c661c7c749af3392632dac779f3 Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18108 Maintainer: Andreas Sandberg Tested-by: kokoro --- src/python/m5/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/m5/main.py b/src/python/m5/main.py index fae04e76c..fd1f6a0db 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -193,7 +193,7 @@ def interact(scope): def _check_tracing(): - import defines + from . import defines if defines.TRACING_ON: return -- 2.30.2