@classmethod<EOL><INDENT>def find_executable(cls, name, check_syspaths=False):<DEDENT>
exe = which(name)<EOL>if not exe and check_syspaths:<EOL><INDENT>paths = cls.get_syspaths()<EOL>env = os.environ.copy()<EOL>env["<STR_LIT>"] = os.pathsep.join(paths)<EOL>exe = which(name, env=env)<EOL><DEDENT>if not exe:<EOL><INDENT>raise RuntimeError("<STR_LIT>" % name)<EOL><DEDENT>return exe<EOL>
Find an executable.

        Args:
            name (str): Program name.
            check_syspaths (bool): If True, check the standard system paths as
                well, if program was not found on current $PATH.

        Returns:
            str: Full filepath of executable.