Re: Absolute path of source file

reza <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <010201921f90993c-f5156242-2d2f-4ab2-8b69-2e3e1671fb76-000000@eu-west-1.amazonses.com>
Hi Retropikzel

Perfect, works out of the box!
I missed this part in the manual, just saw that it is in chapter "Source
Properties" where I would never have guessed to look at.
Thanks very much,
Reza

> 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.