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 <r...@housseini.me> 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))

Reply via email to