[plt-scheme] Enhancement: function that returns the name of the current file

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Jul 20 14:05:54 EDT 2005

Eric Hanchrow wrote:

> So now here's my request: either add some documentation that mentions
> this technique, or, even better, make a little function named
> something like this-modules-path, which does the above, and document
> _it_.

I believe you want (this-expression-file-name) in (lib "etc.ss"),
perhaps in combination with (this-expression-source-directory).

Jens Axel Søgaard

Posted on the users mailing list.