Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/40966 )
Change subject: scons: Move imports below version checks in site_init.py.
......................................................................
scons: Move imports below version checks in site_init.py.
Without knowing for sure we're using python 3, it's dangerous to start
pulling in code which may make that assumption.
Change-Id: Ic13af74a686ee0fb8f36bb672beadea4334b431c
---
M site_scons/site_init.py
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/site_scons/site_init.py b/site_scons/site_init.py
index 2f7cbf1..3507373 100644
--- a/site_scons/site_init.py
+++ b/site_scons/site_init.py
@@ -39,7 +39,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
-from gem5_python_paths import extra_python_paths
# Check for recent-enough Python and SCons versions.
try:
@@ -85,4 +84,6 @@
""")
raise
+from gem5_python_paths import extra_python_paths
+
sys.path[1:1] = extra_python_paths
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/40966
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: Ic13af74a686ee0fb8f36bb672beadea4334b431c
Gerrit-Change-Number: 40966
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.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