In your `get-info` function for your #lang, if `ip` is the input port passed as 
the first argument to `get-info`, then you can get the current document 
filename like so:

(send (object-name ip) get-filename)

And pass it as an argument to your button function.


> On Jun 25, 2019, at 1:10 PM, Kshitij Sachan <kshitijsacha...@gmail.com> wrote:
> 
> I'm trying to make a language-specific toolbar button that when clicked 
> prints the path of the file the button is clicked from. I've been able to set 
> up the button, but how I don't know how to access the path of the current 
> file.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1D594ACA-0406-4C54-A7EF-0BAB3AB9F9AE%40mbtype.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to