INNER CODE UNIT · Python

_get_tool_version

broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:103

    def _get_tool_version(self):
        raise NotImplementedError

    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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…