comparison venv/lib/python2.7/site-packages/planemo/bioblend.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 from __future__ import absolute_import
2
3 try:
4 from bioblend import toolshed
5 from bioblend import galaxy
6 except ImportError:
7 toolshed = None
8 galaxy = None
9
10 BIOBLEND_UNAVAILABLE = ("This functionality requires the bioblend library "
11 " which is unavailable, please install `pip install "
12 "bioblend`")
13
14
15 def ensure_module(mod):
16 if toolshed is None:
17 raise Exception(BIOBLEND_UNAVAILABLE)