scons: add slicc and ply to sys.path and PYTHONPATH so everyone has access
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user