Does CWL have a search path for commadlinetools?
1
1
Entering edit mode
6.7 years ago
thomas.e ▴ 110

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.4k views
ADD COMMENT
1
Entering edit mode
6.5 years ago

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!

ADD COMMENT

Login before adding your answer.

Traffic: 2122 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6