view 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
line wrap: on
line source

from __future__ import absolute_import

try:
    from bioblend import toolshed
    from bioblend import galaxy
except ImportError:
    toolshed = None
    galaxy = None

BIOBLEND_UNAVAILABLE = ("This functionality requires the bioblend library "
                        " which is unavailable, please install `pip install "
                        "bioblend`")


def ensure_module(mod):
    if toolshed is None:
        raise Exception(BIOBLEND_UNAVAILABLE)