summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@arm.com>2019-04-15 14:08:49 +0100
committerCiro Santilli <ciro.santilli@arm.com>2019-04-23 10:21:46 +0000
commit325acb786e5472841011cebed3cc36e535b413dc (patch)
tree3ca58a2b76e9f3d3c03f73e4af8793bbd0b1be35
parentc5b3db6da28611280c291d9e0540f087cf55a54e (diff)
downloadgem5-325acb786e5472841011cebed3cc36e535b413dc.tar.xz
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 <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18108 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--src/python/m5/main.py2
1 files changed, 1 insertions, 1 deletions
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