Usually, if you want to refer to data files etc relative to the current
module's file, a good solution is to use `define-runtime-path`. It uses
`#%variable-reference` as the basis for its implementation, but adds other
features like cooperation with `raco exe` (see docs for
`define-runtime-path` ne
The analog to the first argument to main in C is
(find-system-path 'run-file)
I think that's probably what you want.
Something closer to `get-current-source` but adapting to a run-time
file is
(variable-reference->module-source
(#%variable-reference))
Here, `(#%variable-reference)` is th
Racket users,
Many software applications use their location in the filesystem to
establish filesystem relationships between their executable file, their
configuration and their data. For this purpose, C provides the first
element of the string array provided to main, python provides __file__,
3 matches
Mail list logo