Re: Absolute path of source file

Retropikzel <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <20240923183923.02eaea5a@rm-aio>
On Mon, 23 Sep 2024 15:35:03 +0000
reza <[email protected]> wrote:

> Hi List
> 
> How can I get the absolute path to a source file from itself. In bash
> this would look like something along the lines
> 
>     realpath $(dirname $0)
> 
> but I could not figure out how to achieve this in guile.
> 
> Thanks for any hints!
> Cheers,
> Reza
> 

Hi! Might example from here:
https://www.gnu.org/software/guile/manual/guile.html#Load-Paths-1

work?

    (dirname (current-filename))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.