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
This commit is contained in:
parent
076e1ebac2
commit
bc2923f78d
2 changed files with 3 additions and 3 deletions
|
@ -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'))
|
||||
|
||||
|
||||
###################################################
|
||||
#
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue