have local PYTHONPATH as fail-safe import location

This commit is contained in:
Philip Eisenlohr 2019-12-12 14:41:38 -05:00
parent 41ed7ce462
commit dacf4cf52b
3 changed files with 7 additions and 0 deletions

5
env/DAMASK.csh vendored
View File

@ -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

1
env/DAMASK.sh vendored
View File

@ -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}"

1
env/DAMASK.zsh vendored
View File

@ -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}"