Execution / how do i get the name of the script

Hallo, I see in the output of k6:

execution: local
script: path / to / script.js
output: -

How can I get the script name during runtime? (e.g. function, global variable)

Unfortunately this isn’t currently possible, please follow https://github.com/k6io/k6/issues/1320 for updates.

I believe that acceptable walkaround is manually storing the name of the script in the returned value is setup function.