Mercurial > repos > peterjc > effectivet3
diff tools/effectiveT3/effectiveT3.py @ 34:011cfce866f1 draft
planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/effectiveT3 commit 3ab3d1a9650dec0533344d710ceb027e482d2b10-dirty
author | peterjc |
---|---|
date | Fri, 09 Nov 2018 10:50:03 -0500 |
parents | 1129cafdf0ae |
children | e2711662802b |
line wrap: on
line diff
--- a/tools/effectiveT3/effectiveT3.py Fri Sep 15 10:23:15 2017 -0400 +++ b/tools/effectiveT3/effectiveT3.py Fri Nov 09 10:50:03 2018 -0500 @@ -102,14 +102,16 @@ except ImportError: # Likely running on Python 2, use backport: def which(cmd, mode=os.F_OK | os.X_OK, path=None): - """Given a command, mode, and a PATH string, return the path which + """Python implementation of command line tool which. + + Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. + `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path. """ - # Check that a given file can be accessed with the correct mode. # Additionally check that `file` is not a directory, as on Windows # directories pass the os.access check.