mirror of
https://github.com/nasa/trick.git
synced 2025-04-11 13:20:05 +00:00
Added TRICK_PYTHON_PATH environment variable #313
This commit is contained in:
parent
9604e019bf
commit
bbec191d54
@ -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"
|
||||
) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user