On Tue, Feb 14, 2017 at 10:05 PM, Matthew Butterick <m...@mbtype.com> wrote:

>
> On Feb 14, 2017, at 8:36 AM, David Storrs <david.sto...@gmail.com> wrote:
>
> (find-system-path 'collects-dir)  ;; yields ../collects, which is useless
> /Applications/Racket_v6.6/collects ;; nothing
> /Library/Application Support/ ;; no directory for Racket
> ~/Library/Application Support/ ;; no directory for Racket
>
> I'm looking for a way to do this programmatically so I'm not flailing
> around in the future.  Where should I be looking?
>
>
> Tardy to the party but I didn't see anyone mention `resolve-module-path`,
> which is my favored way to do this. You pass the quoted module name and it
> returns a full path. Boom.
>
> #lang racket/base
> (require syntax/modresolve)
> (resolve-module-path 'syntax/modresolve)
>
>
> > #<path:/to/my/git/racket/racket/collects/syntax/modresolve.rkt>
>

Matthew, you're brilliant. That is exactly what I wanted, thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to