Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/32123 )
Change subject: scons: Make src/systemc/tests/SConscript python 3
compatible.
......................................................................
scons: Make src/systemc/tests/SConscript python 3 compatible.
The os.path.walk method was moved to os.path. First try to import it
from its original location. If that doesn't work, try again from its
python 3 location.
Change-Id: I7919b6a2063c65bc3619927aa4514d8d6d1b2038
---
M src/systemc/tests/SConscript
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/systemc/tests/SConscript b/src/systemc/tests/SConscript
index e791059..12781c7 100644
--- a/src/systemc/tests/SConscript
+++ b/src/systemc/tests/SConscript
@@ -34,6 +34,12 @@
import os.path
import json
+ # The os.path.walk method was moved to os.walk in python 3.
+ try:
+ from os.path import walk
+ except:
+ from os import walk
+
src = str(Dir('.').srcdir)
class SystemCTest(object):
@@ -166,7 +172,7 @@
test.deps = get_entries('DEPS')
subdir_src = Dir('.').srcdir.Dir(subdir)
- os.path.walk(str(subdir_src), visitor, None)
+ walk(str(subdir_src), visitor, None)
scan_dir_for_tests('systemc')
scan_dir_for_tests('tlm')
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/32123
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I7919b6a2063c65bc3619927aa4514d8d6d1b2038
Gerrit-Change-Number: 32123
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s