Is there a Racket equivalent of Perl's __FILE__ token?

In Perl I can do this:


I'd like to be able to access files at runtime that have a path known in
relation to the current file.  I can do this:

    (define-runtime-path this-dir ".")
    (file-exists? (build-path this-dir (some-func-that-returns-a-path)))

...but that requires the define-runtime-path in any file I want to do this
in.

Is there a built-in version of     (define-runtime-path this-dir ".") ?

Alternatively, is there a built-in version of Perl's __FILE__ token, which
gives me the absolute path to the source file in which it is used?

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to