Hi everyone. How can we access the fileName of our...
# announcements
m
Hi everyone. How can we access the fileName of our main function in Kotlin? for example, suppose we have a file Example.kt that has a main function in it declared outside any class. I want to access the fileName and the package that Example.kt is in. Thanks for your help.
b
Don't think it's possible, it's not nodejs. Unless of course you're running kotlin.js, but then you'd only get final bundle file name anyways
m
Thanks, I guessed so :-(