mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Added TRICK_PYTHON_PATH environment variable #313
This commit is contained in:
parent
c134ffea8f
commit
ba59606b1d
@ -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" ;
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
) ;
|
||||
|
Loading…
Reference in New Issue
Block a user