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
This is a more elegant way:
function script_path() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)") end print(script_path())