Function: dape--ensure-executable

dape--ensure-executable is a natively compiled function defined in dape.el.

Signature

(dape--ensure-executable EXECUTABLE)

Documentation

Ensure that EXECUTABLE exist on system.

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--ensure-executable (executable)
  "Ensure that EXECUTABLE exist on system."
  (unless (or (and (file-name-absolute-p executable)
                   (file-remote-p default-directory)
                   (file-executable-p
                    (concat (file-remote-p default-directory) executable)))
              (file-executable-p executable)
              (executable-find executable t))
    (user-error "Unable to locate %S (default-directory %s)"
                executable default-directory)))