[racket] getting complete paths to Racket executables

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Sun Jan 8 15:59:04 EST 2012

On Sat, Jan 7, 2012 at 4:18 AM, Neil Van Dyke <neil at neilvandyke.org> wrote:
> How do I get the complete path to Racket executables like "raco", in a
> portable way?

'find-exe' from the compiler/find-exe library should do the trick:

http://docs.racket-lang.org/raco/exe.html#(def._((lib._compiler/find-exe..rkt)._find-exe))


We might also be able to use find-executable-path, though it wouldn't
guarantee that it would find it if Racket isn't in PATH.  find-exe is
probably the better bet.


Posted on the users mailing list.