[Larceny-users] snow install path
William D Clinger
will at ccs.neu.edu
Tue Mar 24 07:44:34 EDT 2015
Alex Shinn wrote:
> So if we use $LARCENY_ROOT, the lib/Snow might be best.
> Is there a way to programmatically determine $LARCENY_ROOT?
> For the relative path I can use:
>
> larceny -quiet -nobanner -- -e '(begin(write(current-require-path))(exit))'
larceny -quiet -nobanner -- -e '(begin (system "printenv LARCENY_ROOT") (exit))'
or
larceny -quiet -nobanner -- -e '(begin (display (getenv "LARCENY_ROOT")) (newline) (exit))'
or
larceny -r7rs -program showroot.sps
where showroot.sps is a file containing something like
(import (scheme base) (scheme write) (scheme process-context))
(display (get-environment-variable "LARCENY_ROOT"))
(newline)
Will
More information about the Larceny-users
mailing list