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 _______________________________________________ Larceny-users mailing list Larceny-users@lists.ccs.neu.edu https://lists.ccs.neu.edu/bin/listinfo/larceny-users