Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/planemo/tools.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
| author | bcclaywell |
|---|---|
| date | Mon, 12 Oct 2015 17:43:33 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d67268158946 |
|---|---|
| 1 import sys | |
| 2 import traceback | |
| 3 from planemo.io import error | |
| 4 | |
| 5 from galaxy.tools import loader_directory | |
| 6 | |
| 7 is_tool_load_error = loader_directory.is_tool_load_error | |
| 8 | |
| 9 | |
| 10 def load_tool_elements_from_path(path, recursive, register_load_errors=False): | |
| 11 return loader_directory.load_tool_elements_from_path( | |
| 12 path, | |
| 13 _load_exception_handler, | |
| 14 recursive=recursive, | |
| 15 register_load_errors=register_load_errors, | |
| 16 ) | |
| 17 | |
| 18 | |
| 19 def _load_exception_handler(path, exc_info): | |
| 20 error("Error loading tool with path %s" % path) | |
| 21 traceback.print_exception(*exc_info, limit=1, file=sys.stderr) | |
| 22 | |
| 23 | |
| 24 __all__ = ["load_tool_elements_from_path", "is_tool_load_error"] |
