From: Steve Reinhardt Date: Mon, 14 Mar 2005 19:43:10 +0000 (-0500) Subject: Move adding SRCDIR/python to sys.path from X-Git-Tag: m5_1.0_tutorial~75^2^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc2923f78d739ad5ff42dee402c5ba27c02004f1;p=gem5.git 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 --- 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):