Function: claude-code-ide--resolve-program
claude-code-ide--resolve-program is a natively compiled function
defined in claude-code-ide.el.
Signature
(claude-code-ide--resolve-program PROGRAM)
Documentation
Return an absolute path for PROGRAM when it resolves locally.
A bare name is looked up via exec-path(var)/exec-path(fun); a name with a directory
component is expanded relative to default-directory. Returns
PROGRAM unchanged when the lookup fails, leaving the missing
executable for the terminal backend to report.
Ghostel's native PTY path (ghostel 0.35.x) execs PROGRAM against the
raw process environment, whose PATH can be missing exec-path(var)/exec-path(fun)
entries that the rest of the package resolves against; passing an
absolute path sidesteps that lookup.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
(defun claude-code-ide--resolve-program (program)
"Return an absolute path for PROGRAM when it resolves locally.
A bare name is looked up via `exec-path'; a name with a directory
component is expanded relative to `default-directory'. Returns
PROGRAM unchanged when the lookup fails, leaving the missing
executable for the terminal backend to report.
Ghostel's native PTY path (ghostel 0.35.x) execs PROGRAM against the
raw process environment, whose PATH can be missing `exec-path'
entries that the rest of the package resolves against; passing an
absolute path sidesteps that lookup."
(or (if (file-name-directory program)
(expand-file-name program)
(executable-find program))
program))