I’d like my modules to be able to reference the file from which they came. Is there a way to do this? For example:
[lua]
— module creatures.lua
local M = {}
M.name = – I need “creatures.lua” here
print(M.name) --> creatures.lua
return M
[/lua]