[plt-scheme] (require (file ...)) current-load-relative-directory

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Jul 21 14:01:57 EDT 2004

current-load-relative-directory is only set at expansion time. Probably
you want to use this-expression-source-directory.

Robby

At Wed, 21 Jul 2004 10:58:57 -0700 (PDT), Ron Stanonik wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> Sorry if this should be obvious.
> 
> If I (require (file "/a/b/c.ss")), how can I get the path ("/a/b")
> to the module inside the module.  current-load-relative-directory
> returns #f.  I need the path because c.ss needs to load a c.so,
> located in the same directory.
> 
> Thanks,
> 
> Ron
> stanonik at cogsci.ucsd.edu


Posted on the users mailing list.