[racket] How to Add to find-library-collection-paths?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Oct 24 13:21:13 EDT 2012

I think you're looking for the PLTCOLLECTS environment variable, which
you want to set to

 /home/don/.racket/5.2.1/collects:

The trailing ":" ensures that the default collection paths are retained.

At Wed, 24 Oct 2012 10:43:14 -0600, Don Green wrote:
>  I need (find-library-collection-paths) to return a list that includes the
> path:
> 
> #<path:/home/don/.plt-scheme/4.2.1/collects>
> 
>  (find-library-collection-paths) ;returns:
> 
> '(#<path:/home/don/.racket/5.2.1/collects>
> 
> #<path:/usr/local/racket/collects>)
> 
> 
>  This path and directory exists:
> 
> #<path:/home/don/.plt-scheme/4.2.1/collects>
> 
> 
>  What file contains the paths found by: (find-library-collection-paths)?
> 
> If so, should I manually add a path to that file?
> 
> ;----------------
> 
> I tried:
> 
> (find-library-collection-paths '("/home/don/.plt-scheme/4.2.1/collects"))
> 
> but I think the above line needs to be in the .racketrc file.
> 
> I thought that .racketrc should be auto-loaded but it does not appear to
> be, probably because it is outside any of my collects directory paths that
> do resolve correctly.
> 
> (find-system-path 'init-file) ;=> #<path:/home/don/.racketrc>
> 
> Thus far I have been using 'require' to access files from 'collects'
> directories, only. I have refrained from using 'load'.
> 
> 
>  Is there some function I should be using to effectively load the .racketrc
> initialization file?
> 
> 
>  Thanks.
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.