From: Nathan Binkert Date: Wed, 10 Mar 2010 23:39:34 +0000 (-0800) Subject: scons: import ply to work around scons sys.path weirdness X-Git-Tag: stable_2012_02_02~1484 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1068ca85d0a29bfa71dc6a21a8d6c8888dce4bc3;p=gem5.git scons: import ply to work around scons sys.path weirdness --- diff --git a/src/arch/SConscript b/src/arch/SConscript index adbf4c292..10ed03c3d 100644 --- a/src/arch/SConscript +++ b/src/arch/SConscript @@ -107,6 +107,9 @@ def isa_desc_emitter(target, source, env): ARCH_DIR = Dir('.') +# import ply here because SCons screws with sys.path when performing actions. +import ply + def isa_desc_action(target, source, env): # Add the current directory to the system path so we can import files sys.path[0:0] = [ ARCH_DIR.srcnode().abspath ]