Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store RTW files in share directory in installed workflow #3600

Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
BASH_XTRACEFD=1
set -eux

# Copy the site specific environment file to the 'bin' directory in the
# Copy the site specific environment file to the 'share/bin' directory in the
# installed Cylc workflow (this directory is automatically added to the
# ${PATH} by Cylc).
SOURCE_PATH="${CYLC_WORKFLOW_RUN_DIR}/site/${SITE}-env"
TARGET_DIR="${CYLC_WORKFLOW_RUN_DIR}/bin"
TARGET_DIR="${CYLC_WORKFLOW_RUN_DIR}/share/bin"
ENV_FILE="rtw-env"

# Create the 'bin' directory in the installed workflow.
# Create the 'share/bin' directory in the installed workflow.
mkdir "${TARGET_DIR}"

# Copy the environment file to the 'bin' directory.
# Copy the environment file to the 'share/bin' directory.
cp "${SOURCE_PATH}" "${TARGET_DIR}/${ENV_FILE}"
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
env-script = "eval $(rose task-env)"
[[[environment]]]
ENV_NAME = {{ ENV_NAME }}
USER_CONFIG_DIR = ${CYLC_WORKFLOW_RUN_DIR}/etc
USER_CONFIG_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT}
USER_CONFIG_PATH = ${USER_CONFIG_DIR}/config-user.yml
OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT}
ESMVALCORE_DIR = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
[runtime]
[[root]]
[[[environment]]]
ESMVALCORE_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValCore
ESMVALTOOL_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValTool
ESMVALCORE_DIR = ${CYLC_WORKFLOW_RUN_DIR}/share/lib/python/ESMValCore
ESMVALTOOL_DIR = ${CYLC_WORKFLOW_RUN_DIR}/share/lib/python/ESMValTool
PYTHONPATH_PREPEND = ${ESMVALCORE_DIR}:${ESMVALTOOL_DIR}

# COMPUTE provides defaults for computation-heavy tasks.
Expand Down
Loading