Join Slack
Powered by
Kotlin worksheets seem to execute in my user home ...
# scripting
m
Marcin Wisniowski
09/04/2023, 8:35 PM
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
ilya.chernikov
09/11/2023, 2:20 PM
Please file the issue in YT.
m
Marcin Wisniowski
09/11/2023, 3:09 PM
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
ilya.chernikov
09/14/2023, 9:09 AM
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
10
Views
Open in Slack
Previous
Next