Added TRICK_PYTHON_PATH environment variable

This commit is contained in:
Derek Bankieris 2016-09-16 09:29:23 -05:00
parent 9604e019bf
commit bbec191d54
3 changed files with 3 additions and 0 deletions
bin/pm
makefiles
trick_source/sim_services/InputProcessor/src

@ -90,6 +90,7 @@ sub gte (@) {
$def{"TRICK_ICG_NOCOMMENT"} = "" ;
$def{"TRICK_ICG_EXCLUDE"} = "" ;
$def{"TRICK_SWIG_EXCLUDE"} = "" ;
$def{"TRICK_PYTHON_PATH"} = "" ;
$def{"TRICK_LDFLAGS"} = "" ;
$def{"TRICK_MAKE"} = "" ;
$def{"TRICK_PATH"} = "$trick_home/bin" ;

@ -31,6 +31,7 @@ export TRICK_SFLAGS
export TRICK_ICG_EXCLUDE
export TRICK_ICG_NOCOMMENT
export TRICK_SWIG_EXCLUDE
export TRICK_PYTHON_PATH
export TRICK_GTE_EXT
export TRICK_HOST_CPU := $(shell export TRICK_CC=$(TRICK_CC) && $(TRICK_HOME)/bin/gte TRICK_HOST_CPU)

@ -95,6 +95,7 @@ int Trick::IPPython::init() {
"import struct\n"
"import binascii\n"
"sys.path.append(os.getcwd())\n"
"sys.path += map(str.strip, os.environ['TRICK_PYTHON_PATH'].split(':'))\n"
"import trick\n"
"sys.path.append(os.getcwd() + \"/Modified_data\")\n"
) ;