From: Ciro Santilli Date: Mon, 15 Apr 2019 13:08:49 +0000 (+0100) Subject: python: fix tracing after Python 3 refactor X-Git-Tag: v19.0.0.0~951 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=325acb786e5472841011cebed3cc36e535b413dc;p=gem5.git 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 --- 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