Kotlin worksheets seem to execute in my user home ...
# scripting
m
Kotlin worksheets seem to execute in my user home directory as their working directory. Is there any way to access the project directory from a worksheet? I don't want to hardcode the project directory path.
i
Please file the issue in YT.
m
I have since found there is an issue filed already for this (7 years ago 🙃): https://youtrack.jetbrains.com/issue/KTIJ-1214/IDE-REPL-should-run-in-project-root-directory
i
Right. Probably this one is more relevant to your case - https://youtrack.jetbrains.com/issue/KTIJ-16686/Worksheets-add-System-property-for-current-project-directory - but they are liked anyway. Please vote, it may help to prioritize it.
👍 1
👍🏾 1