File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/user-guide/writing-workflows Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ Other files and folders may be placed in the :term:`source directory` too:
55
55
documentation, configuration files, etc. When the workflow is :ref: `installed
56
56
<Installing-workflows>` these will be copied over to the :term: `run directory `.
57
57
58
+ If your workflow needs to create or install scripts or executables at runtime
59
+ and you don't want Cylc to delete them on re-installation, you can create
60
+ equivalent directories in the :ref: `WorkflowShareDirectories `.
61
+
58
62
59
63
.. _SyntaxHighlighting :
60
64
Original file line number Diff line number Diff line change @@ -306,6 +306,8 @@ exported to subshells:
306
306
# relative to the workflow work directory
307
307
308
308
309
+ .. _WorkflowShareDirectories :
310
+
309
311
Workflow Share Directories
310
312
^^^^^^^^^^^^^^^^^^^^^^^^^^
311
313
@@ -317,6 +319,16 @@ output files are typically held in cycle point sub-directories of this.
317
319
The top level share directory location can be changed, e.g. to a large data
318
320
area, by global config settings under :cylc:conf: `global.cylc[install][symlink dirs] `.
319
321
322
+ If your workflow creates or installs executables or python libraries
323
+ as it is running, these can be placed in:
324
+
325
+ * ``share/bin `` - for executables.
326
+ * ``share/lib/python `` - for Python modules.
327
+
328
+ These folders will be added to ``PATH `` and ``PYTHONPATH `` so they can be
329
+ used by jobs in the same way as
330
+ :ref: `top level "bin/" and "lib/python/" directories <WorkflowDefinitionDirectories >`.
331
+
320
332
321
333
Task Work Directories
322
334
^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments