INNER CODE UNIT · Python
executable_path
broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:106
def executable_path(self):
return self.exec_path
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).