Added TRICK_PYTHON_PATH environment variable #313

This commit is contained in:
Derek Bankieris 2016-09-16 09:20:11 -05:00
parent c134ffea8f
commit ba59606b1d
3 changed files with 3 additions and 0 deletions

View File

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

View File

@ -37,6 +37,7 @@ export TRICK_ICG_EXCLUDE
export TRICK_ICG_NOCOMMENT
export TRICK_SWIG_EXCLUDE
export TRICK_EXT_LIB_DIRS
export TRICK_PYTHON_PATH
export TRICK_GTE_EXT
export TRICK_HOST_CPU := $(shell export TRICK_CC=$(TRICK_CC) && $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
export TRICK_EXEC_LINK_LIBS = ${PTHREAD_LIBS} $(PYTHON_LIB) $(UDUNITS_LDFLAGS) $(PLATFORM_LIBS) -lm -ldl

View File

@ -103,6 +103,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"
) ;