summaryrefslogtreecommitdiff
path: root/site_scons/site_tools
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/site_tools')
-rw-r--r--site_scons/site_tools/default.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/site_scons/site_tools/default.py b/site_scons/site_tools/default.py
index 2d32b56bd..73c4a9eaf 100644
--- a/site_scons/site_tools/default.py
+++ b/site_scons/site_tools/default.py
@@ -39,10 +39,13 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import os
+import sys
import SCons.Tool
import SCons.Tool.default
+from gem5_python_paths import extra_python_paths
+
def common_config(env):
# export TERM so that clang reports errors in color
use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH',
@@ -71,6 +74,10 @@ def common_config(env):
env.root = env.Dir('#')
env.srcdir = env.root.Dir('src')
+ # add useful python code PYTHONPATH so it can be used by subprocesses
+ # as well
+ env.AppendENVPath('PYTHONPATH', extra_python_paths)
+
gem5_tool_list = [
'git',
'mercurial',