From: Retropikzel <retropikzel_@disroot.org>
To: reza <reza@housseini.me>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Absolute path of source file
Date: Mon, 23 Sep 2024 18:39:23 +0300 [thread overview]
Message-ID: <20240923183923.02eaea5a@rm-aio> (raw)
In-Reply-To: <010201921f859ddf-59f911d6-5c02-470c-a8ef-c8d43638fd8c-000000@eu-west-1.amazonses.com>
On Mon, 23 Sep 2024 15:35:03 +0000
reza <reza@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))
next prev parent reply other threads:[~2024-09-23 15:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <877cb21j0d.fsf@housseini.me>
2024-09-23 15:35 ` Absolute path of source file reza
2024-09-23 15:39 ` Retropikzel [this message]
[not found] ` <871q1a1ig0.fsf@housseini.me>
2024-09-23 15:47 ` reza
2024-09-24 17:17 ` Zelphir Kaltstahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240923183923.02eaea5a@rm-aio \
--to=retropikzel_@disroot.org \
--cc=guile-user@gnu.org \
--cc=retropikzel@iki.fi \
--cc=reza@housseini.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).