From: Gabe Black Date: Mon, 20 Apr 2020 14:03:40 +0000 (-0700) Subject: scons: Import "sys" which is used in an exception handler. X-Git-Tag: v20.0.0.0~183 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ab786dbecce48053cb8797d87f97737f0400d3e;p=gem5.git scons: Import "sys" which is used in an exception handler. If the call to "raw_input" fails (it does in python 3.x), then the "except" runs and will also fail because sys hasn't been imported. Change-Id: Ibf5778a893a5bd8aad17f4aee544ddcfe5085cab Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27947 Reviewed-by: Nikos Nikoleris Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/site_scons/site_tools/git.py b/site_scons/site_tools/git.py index e5b79129b..5b4591f35 100644 --- a/site_scons/site_tools/git.py +++ b/site_scons/site_tools/git.py @@ -40,6 +40,7 @@ from __future__ import print_function import os +import sys import gem5_scons.util from m5.util import readCommand