
@michael_liu has joined the channel

Is there any way to the current module’s path without specifically using define-runtime-path
?

@grierson has joined the channel

@leif (variable-reference->module-path-index (#%variable-reference))
or (variable-reference->resolved-module-path (#%variable-reference))
, depending on how you plan to use the result

See also quote-module-path
and related from syntax/location

@mflatt pass it into a dynamic-require

I’ll give this a shot, thanks.

@mflatt I feel like I should know this, but am blanking, what is the correct way to take this resolved module path, and find another path relative to it?

(Basically, I’m looking for something like build-path
, but for module paths.

You should use the module path index and module-path-index-join

Ah, cool, thanks.

Cool @mflatt that worked

Thank you