[plt-scheme] Finding out the script name

From: Grzegorz Chrupala (gregor.chrupala at star-group.net)
Date: Mon Feb 17 06:25:45 EST 2003

> De: Noel Welsh [mailto:noelwelsh at yahoo.com]
> wrote:
> > Is there a function/variable in PLT scheme that
> > gives you the filename of the script that is being
> > executed?
>
> Does the argv vector not contain what you want?  I'm
> too lazy to try this myself, but I expect it to work.
>

Nope. The vector contains args that follow the script name but not the
script name itself.
And the program variable contains the name of the executable thats executing
the script, but not the script name. Seems kind of perverse ...

G.




Posted on the users mailing list.