INNER CODE UNIT · Python
execute
broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:109
def execute(self, *args):
assert not os.system(self.exec_path + ' ' + args)
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):