From bc2923f78d739ad5ff42dee402c5ba27c02004f1 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 14 Mar 2005 14:43:10 -0500 Subject: [PATCH] Move adding SRCDIR/python to sys.path from multiple SConscript files to SConstruct. build/SConstruct: Add SRCDIR/python to sys.path here. python/SConscript: Move adding SRCDIR/python to sys.path to SConstruct. --HG-- extra : convert_revision : f598d670650f5b4fd501caaf073fe38b44d21855 --- build/SConstruct | 3 +++ python/SConscript | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/SConstruct b/build/SConstruct index 0f688ac3b..e33373243 100644 --- a/build/SConstruct +++ b/build/SConstruct @@ -62,6 +62,9 @@ if not os.path.isdir('ext'): % EXT_SRCDIR sys.exit(1) +# tell python where to find m5 python code +sys.path.append(os.path.join(SRCDIR, 'python')) + ################################################### # diff --git a/python/SConscript b/python/SConscript index 8404bc4bd..9c15c6d50 100644 --- a/python/SConscript +++ b/python/SConscript @@ -30,9 +30,6 @@ import os, os.path, re, sys Import('env') -# tell python where to find m5 python code -sys.path.append(os.path.join(env['SRCDIR'], 'python')) - import m5scons def WriteEmbeddedPyFile(target, source, path, name, ext, filename):