soegaard
soegaard

Reputation: 31147

What is the new name for this-expression-file-name?

I need the name of the function that returns the path of the expression. In the old mzscheme days the two functions were called this-expression-file-name and this-expression-source-directory but what are they named in Racket?

Upvotes: 2

Views: 88

Answers (1)

Sam Tobin-Hochstadt
Sam Tobin-Hochstadt

Reputation: 5053

You can still find this-expression-file-name and this-expression-source-directory in mzlib/etc. But usually now you'd use define-runtime-path to handle this-expression-source-directory, and direct access to the syntax object for the file name.

Upvotes: 3

Related Questions