What is the recommended env var to use to obtain the ~/cylc-run/<suite_id> directory path. I’m currently using ROSE_SUITE_DIR, is that correct?
Thanks
Joe
What is the recommended env var to use to obtain the ~/cylc-run/<suite_id> directory path. I’m currently using ROSE_SUITE_DIR, is that correct?
Thanks
Joe
In a task that runs a Rose application it’s fine to use ROSE_SUITE_DIR
.
https://metomi.github.io/rose/doc/html/api/environment-variables.html#envvar-ROSE_SUITE_DIR
However, Cylc provides an equivalent variable which is always available.
With Cylc 8 this is CYLC_WORKFLOW_RUN_DIR
.
https://cylc.github.io/cylc-doc/stable/html/reference/job-script-vars/index.html
With Cylc 7 it is CYLC_SUITE_RUN_DIR
(which is still available at Cylc 8 but deprecated).
https://cylc.github.io/cylc-doc/7.8.8/html/suite-config.html#task-job-script-variables
We provided the Rose environment variables to make it possible to use Rose applications outside of Cylc. In practise this has rarely happened.
Great, thanks Dave. I’ll stick with ROSE_SUITE_DIR.
Joe