is there a way to get a path to the currently exec...
# scripting
n
is there a way to get a path to the currently executing script (
.main.kts
) ? i don't want to reply on the script getting invoked always from the correct root directory or trying to guess what the correct path is.. somthing like
Copy code
File(Script_main::class.java.protectionDomain.codeSource.location.toURI())
but that does not work since location in codeSource is null does anyone know a workaround ?
2
a
n
i assume that is available in 1.6.20-RC ?
i guess its nice to know that it is coming