[racket] getting complete paths to Racket executables

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Sat Jan 7 04:18:43 EST 2012

How do I get the complete path to Racket executables like "raco", in a 
portable way?

More precisely, I would like to get the complete path of the Racket 
executable currently being used.  (From there, it would be good enough 
just to look for an executable of the desired name, like "raco", in the 
same directory.)

"find-system-path" doesn't seem to be doing it for me even on Linux:

$ cd /tmp
$ racket -e "(find-system-path 'exec-file)"
$ racket -e "(find-system-path 'run-file)"
$ racket -e "(find-system-path 'orig-dir)"
$ which racket
$ alias racket
bash: alias: racket: not found


Posted on the users mailing list.