etc/bashrc, etc/cshrc: Filter $WM_PROJECT_DIR from paths rather than $FOAM_INST_DIR

Additionally filter $ParaView_DIR from paths in config.sh/paraview and config.csh/paraview

Resolves bug-report http://bugs.openfoam.org/view.php?id=2031
This commit is contained in:
Henry Weller
2016-05-05 15:37:00 +01:00
parent cf4b35693c
commit ce81c49d2e
8 changed files with 30 additions and 42 deletions

View File

@ -104,15 +104,9 @@ export FOAM_SIGFPE=
################################################################################
# The old dirs to be cleaned from the various environment variables
# - remove anything under top-level directory.
# NB: the WM_PROJECT_INST_DIR might not be identical between versions
foamOldDirs="$FOAM_INST_DIR $WM_PROJECT_SITE $HOME/$WM_PROJECT/$USER"
if [ "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ]
then
foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
fi
# The old dirs to be cleaned from the environment variables
foamOldDirs="$WM_PROJECT_DIR $WM_THIRD_PARTY_DIR \
$WM_PROJECT_SITE $HOME/$WM_PROJECT/$USER"
# Location of installation
# ~~~~~~~~~~~~~~~~~~~~~~~~