I am wondering if there is a way of getting the path to the currently executing lua script file?
This is specifically not the current working directory, which could be
If the Lua script is being run by the standard command line interpreter, then try arg[0].
arg[0]