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

add share/lib/python and share/bin to PYTHONPATH & PATH #5525

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Update cylc/flow/etc/job.sh
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
  • Loading branch information
wxtim and MetRonnie authored May 12, 2023
commit c85fcd8ce5fc82afedc7b4d0c19da7cf9c5df762
6 changes: 2 additions & 4 deletions cylc/flow/etc/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ cylc__job__main() {
CYLC_TASK_MESSAGE_STARTED_PID=$!
# System paths:
# * workflow directory (installed run-dir first).
export PATH="${CYLC_WORKFLOW_RUN_DIR}/bin:${PATH}"
export PATH="${CYLC_WORKFLOW_RUN_DIR}/share/bin:${PATH}"
export PYTHONPATH="${CYLC_WORKFLOW_RUN_DIR}/lib/python:${PYTHONPATH:-}"
export PYTHONPATH="${CYLC_WORKFLOW_RUN_DIR}/share/lib/python:${PYTHONPATH:-}"
export PATH="${CYLC_WORKFLOW_RUN_DIR}/share/bin:${CYLC_WORKFLOW_RUN_DIR}/bin:${PATH}"
export PYTHONPATH="${CYLC_WORKFLOW_RUN_DIR}/share/lib/python:${CYLC_WORKFLOW_RUN_DIR}/lib/python:${PYTHONPATH:-}"
# Create share and work directories
mkdir -p "${CYLC_WORKFLOW_SHARE_DIR}" || true
mkdir -p "$(dirname "${CYLC_TASK_WORK_DIR}")" || true
Expand Down