Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/CSET/cset_workflow/bin/app_env_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ if [[ -d "${CYLC_WORKFLOW_RUN_DIR}/conda-environment" ]]; then
echo "Using conda environment from ${CYLC_WORKFLOW_RUN_DIR}/conda-environment"
# Don't capture output so logs are seen while the program is still running.
exec "${CONDA_PATH}conda" run --no-capture-output --prefix "${CYLC_WORKFLOW_RUN_DIR}/conda-environment" "$@"
else
elif conda info --envs | grep -q '^cset-dev '; then
echo "No linked conda environment. Attempting to use 'cset-dev' environment."
if ! "${CONDA_PATH}conda" run --no-capture-output --name cset-dev "$@" ; then
exec "${CONDA_PATH}conda" run --no-capture-output --name cset-dev "$@"
else
echo "No conda environment to use. Attempting last-ditch attempt to run directly."
exec "$@"
fi
fi