https://kotlinlang.org logo
#scripting
Title
# scripting
a

Achifal

08/26/2021, 10:41 AM
Hi! Assuming I run my script.main.kts file from a directory different than the directory where the script resides, e.g. with 
kolinc -script /path/to/script
, is there a way to get the location of the script file at runtime? It's extremely needed for convenient usage of Kotlin for scripting use cases. Thanks
m

mbonnin

08/26/2021, 12:08 PM
Subscribing to this thread. Haven't found a way to do this yet either using the script context or environment variables