Is there any way to resolve a path relative to the main module, that also works if run inside a self contained executable?
I know there is Deno.mainModule and with the std/path the problem seems quite easy to solve, but Deno.mainModule
returns the path of the main module during build time.
There is also Deno.execPath for getting the path of the executable, so the problem would be solvable with a combination of those two APIs, except I don't know how to check if the code is running in a self contained executable.
Any suggestions?
Thanks a lot in advance π