This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Does CWL have a search path for commadlinetools?

I'd like to setup a shared source for command line tools at our site and have people use them in individual workflows. For example:

mystep:
   run: mytool.cwl
etc

Is it part of the CWL spec that it can search a path, analogous to $PATH, $CLASSPATH or $PYTHONPATH? The documentation seems to imply that this should happen: http://www.commonwl.org/v1.0/CommandLineTool.html#Discovering_CWL_documents_on_a_local_filesystem but the reference implementation does not search these locations when looking for tools.

cwl

1 answer

Hello thomas.e,

The paths from the spec (/usr/share/commonwl/, /usr/local/share/commonwl/, $XDG_DATA_HOME/commonwl/ (default equivalent to $HOME/.local/share/commonwl) should work, see https://github.com/common-workflow-language/cwltool/blob/master/cwltool/resolver.py#L15

Please file an issue on GitHub if this is not the case, thanks!

Log in to answer this question.