code: def find_executable(cls, name, check_syspaths=False):
          
          exe = which(name)
  
          if not exe and check_syspaths:
              paths = cls.get_syspaths()
              env = os.environ.copy()
              env["PATH"] = os.pathsep.join(paths)
              exe = which(name, env=env)
  
          if not exe:
              raise RuntimeError("Couldn't find executable '%s'." % name)
          return exe
docs: 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.