summaryrefslogtreecommitdiff
path: root/src/arch/SConscript
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-03-10 15:39:34 -0800
committerNathan Binkert <nate@binkert.org>2010-03-10 15:39:34 -0800
commit1068ca85d0a29bfa71dc6a21a8d6c8888dce4bc3 (patch)
tree558cd4dc73f1af97c6d165c8d85e270aea0b18aa /src/arch/SConscript
parent25aac791deb20ebf115b9e82e83dd4f8f62d7d31 (diff)
downloadgem5-1068ca85d0a29bfa71dc6a21a8d6c8888dce4bc3.tar.xz
scons: import ply to work around scons sys.path weirdness
Diffstat (limited to 'src/arch/SConscript')
-rw-r--r--src/arch/SConscript3
1 files changed, 3 insertions, 0 deletions
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 ]