have local PYTHONPATH as fail-safe import location
This commit is contained in:
parent
41ed7ce462
commit
dacf4cf52b
|
@ -61,3 +61,8 @@ if ( $?prompt ) then
|
|||
endif
|
||||
|
||||
setenv DAMASK_NUM_THREADS $DAMASK_NUM_THREADS
|
||||
if ( ! $?PYTHONPATH ) then
|
||||
setenv PYTHONPATH $DAMASK_ROOT/python
|
||||
else
|
||||
setenv PYTHONPATH $DAMASK_ROOT/python:$PYTHONPATH
|
||||
endif
|
||||
|
|
|
@ -94,6 +94,7 @@ if [ ! -z "$PS1" ]; then
|
|||
fi
|
||||
|
||||
export DAMASK_NUM_THREADS
|
||||
export PYTHONPATH=$DAMASK_ROOT/python:$PYTHONPATH
|
||||
|
||||
for var in BASE STAT SOLVER PROCESSING FREE DAMASK_BIN BRANCH; do
|
||||
unset "${var}"
|
||||
|
|
|
@ -88,6 +88,7 @@ if [ ! -z "$PS1" ]; then
|
|||
fi
|
||||
|
||||
export DAMASK_NUM_THREADS
|
||||
export PYTHONPATH=$DAMASK_ROOT/python:$PYTHONPATH
|
||||
|
||||
for var in BASE STAT SOLVER PROCESSING FREE DAMASK_BIN BRANCH; do
|
||||
unset "${var}"
|
||||
|
|
Loading…
Reference in New Issue