INNER CODE UNIT · Python
install_and_get_path
broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:112
def install_and_get_path(self):
self.install()
if self.executable_path() == None:
raise NameError("unsuccessful in installing " + type(self).__name__)
return self.executable_path()
class InstallMethod(object):
''' Base class for installation methods for a given tool.
None of these methods should ever fail/error. attempt_install should
return silently regardless of the outcome (is_installed must be
called to verify success or failure).
'''
def __init__(self):
self.attempts = 0
def is_attempted(self):