Hello Andreas Sandberg,

I'd like you to do a code review. Please visit

    https://gem5-review.googlesource.com/c/public/gem5/+/18108

to review the following change.


Change subject: python: fix tracing after Python 3 refactor
......................................................................

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 <[email protected]>
---
M src/python/m5/main.py
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/python/m5/main.py b/src/python/m5/main.py
index fae04e7..fd1f6a0 100644
--- a/src/python/m5/main.py
+++ b/src/python/m5/main.py
@@ -193,7 +193,7 @@


 def _check_tracing():
-    import defines
+    from . import defines

     if defines.TRACING_ON:
         return

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/18108
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I06959d6e0ccb7c661c7c749af3392632dac779f3
Gerrit-Change-Number: 18108
Gerrit-PatchSet: 1
Gerrit-Owner: Ciro Santilli <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to