diff --git a/etc/config.csh/settings b/etc/config.csh/settings index d9d0157f05..d4d8836a65 100644 --- a/etc/config.csh/settings +++ b/etc/config.csh/settings @@ -186,8 +186,12 @@ setenv FOAM_UTILITIES $FOAM_APP/utilities setenv FOAM_SOLVERS $FOAM_APP/solvers setenv FOAM_RUN $WM_PROJECT_USER_DIR/run -# Add wmake to the path - not required for runtime-only environment +# Add application bins to the path +_foamAddPath ${FOAM_USER_APPBIN}:${FOAM_SITE_APPBIN}:${FOAM_APPBIN} + +# Add wmake scripts to the path - not required for runtime-only environment if ( -d "${WM_DIR}" ) setenv PATH ${WM_DIR}:${PATH} + # Add OpenFOAM scripts to the path setenv PATH ${WM_PROJECT_DIR}/bin:${PATH} @@ -200,7 +204,6 @@ if ( -d "$siteDir/$WM_PROJECT_VERSION/bin" ) then # Version-specific endif unset siteDir -_foamAddPath ${FOAM_USER_APPBIN}:${FOAM_SITE_APPBIN}:${FOAM_APPBIN} # Make sure to pick up dummy versions of external libraries last _foamAddLib ${FOAM_USER_LIBBIN}:${FOAM_SITE_LIBBIN}:${FOAM_LIBBIN}:${FOAM_EXT_LIBBIN}:${FOAM_LIBBIN}/dummy diff --git a/etc/config.sh/settings b/etc/config.sh/settings index d48896bac9..b3b71c1bcc 100644 --- a/etc/config.sh/settings +++ b/etc/config.sh/settings @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | Website: https://openfoam.org -# \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -186,8 +186,12 @@ export FOAM_UTILITIES=$FOAM_APP/utilities export FOAM_SOLVERS=$FOAM_APP/solvers export FOAM_RUN=$WM_PROJECT_USER_DIR/run -# Add wmake to the path - not required for runtime-only environment +# Add application bins to the path +_foamAddPath $FOAM_USER_APPBIN:$FOAM_SITE_APPBIN:$FOAM_APPBIN + +# Add wmake scripts to the path - not required for runtime-only environment [ -d "$WM_DIR" ] && PATH=$WM_DIR:$PATH + # Add OpenFOAM scripts to the path export PATH=$WM_PROJECT_DIR/bin:$PATH @@ -202,7 +206,6 @@ then fi unset siteDir -_foamAddPath $FOAM_USER_APPBIN:$FOAM_SITE_APPBIN:$FOAM_APPBIN # Make sure to pick up dummy versions of external libraries last _foamAddLib $FOAM_USER_LIBBIN:$FOAM_SITE_LIBBIN:$FOAM_LIBBIN:$FOAM_EXT_LIBBIN:$FOAM_LIBBIN/dummy