summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-09-22 15:24:16 -0700
committerNathan Binkert <nate@binkert.org>2009-09-22 15:24:16 -0700
commite9288b2cd35863c600d7ff7bf04f4c08e055e3e0 (patch)
tree038fd2281a4ac8df8d708a7f57fb7aa59ab81e4a /src
parent9a8cb7db7e86c25a755f2e2817a0385b13e3ac32 (diff)
downloadgem5-e9288b2cd35863c600d7ff7bf04f4c08e055e3e0.tar.xz
scons: add slicc and ply to sys.path and PYTHONPATH so everyone has access
Diffstat (limited to 'src')
-rwxr-xr-xsrc/arch/isa_parser.py5
-rw-r--r--src/arch/micro_asm.py4
-rw-r--r--src/mem/protocol/SConscript1
3 files changed, 0 insertions, 10 deletions
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py
index d5b5bbe4f..23260ca48 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -34,11 +34,6 @@ import traceback
# get type names
from types import *
-# Prepend the directory where the PLY lex & yacc modules are found
-# to the search path. Assumes we're compiling in a subdirectory
-# of 'build' in the current tree.
-sys.path[0:0] = [os.environ['M5_PLY']]
-
from ply import lex
from ply import yacc
diff --git a/src/arch/micro_asm.py b/src/arch/micro_asm.py
index 3433a8076..4e5400cef 100644
--- a/src/arch/micro_asm.py
+++ b/src/arch/micro_asm.py
@@ -34,10 +34,6 @@ import traceback
# get type names
from types import *
-# Prepend the directory where the PLY lex & yacc modules are found
-# to the search path.
-sys.path[0:0] = [os.environ['M5_PLY']]
-
from ply import lex
from ply import yacc
diff --git a/src/mem/protocol/SConscript b/src/mem/protocol/SConscript
index 293346f13..700ab40ea 100644
--- a/src/mem/protocol/SConscript
+++ b/src/mem/protocol/SConscript
@@ -73,7 +73,6 @@ protocol = env['PROTOCOL']
sources = [ protocol_dir.File("RubySlicc_interfaces.slicc"),
protocol_dir.File("%s.slicc" % protocol) ]
-sys.path[0:0] = [env['ENV']['M5_PLY']]
execfile(slicc_dir.File('parser/parser.py').srcnode().abspath)
sm_files = read_slicc([s.srcnode().abspath for s in sources])